* Ed Schouten <[EMAIL PROTECTED]> wrote: > * Michael <[EMAIL PROTECTED]> wrote: > > On Saturday 23 June 2007 07:15, Eren Türkay wrote: > > > Btw, my alsa-lib version is 1.0.14a > > > > Mine is 1.0.11. I'll try to upgrade, then. > > Please let me know whether this solves your issue. -77 is equal to > -EBADFD. I'll do some more investigation on this issue.
It could be possible that the following patch fixes this. It shouldn't
be needed, but it could be possible that the ALSA library on your
machine is so broken that we need to do this. Please let me know whether
this fixes your issue:
%%%
diff --git a/herrie/src/audio_output_alsa.c b/herrie/src/audio_output_alsa.c
index 396efb5..b7ba04b 100644
--- a/herrie/src/audio_output_alsa.c
+++ b/herrie/src/audio_output_alsa.c
@@ -80,12 +80,11 @@ audio_output_apply_hwparams(void)
if (snd_pcm_hw_params_set_channels(devhnd, devparam, channels) != 0)
return (-1);
+ /* XXX: We may be underrun - fix that first. */
+ snd_pcm_prepare(devhnd);
/* Apply values */
if (snd_pcm_hw_params(devhnd, devparam) != 0)
return (-1);
- /* And we're off! */
- if (snd_pcm_prepare(devhnd) != 0)
- return (-1);
return (0);
}
%%%
Yours,
--
Ed Schouten <[EMAIL PROTECTED]>
WWW: http://g-rave.nl/
pgpGnZHOA6P3B.pgp
Description: PGP signature
