[alsa-devel] SALSA: snd_pcm_avail_update

J. Scott Merritt alsauser at pragmasoft.com
Fri Sep 14 18:26:26 CEST 2007


On Thu, 13 Sep 2007 18:55:55 -0400
"J. Scott Merritt" <alsauser at pragmasoft.com> wrote:

> Using salsa-lib-0.0.11, cross-compiling to ARM ...
> 
> Despite my best efforts, snd_pcm_avail_update is always returning
> "broken pipe".  I have checked the pcm_state of the Capture Handle
> just before snd_pcm_avail_update and it is "RUNNING'.  But immediately
> after snd_pcm_avail_update it always returns "XRUN".  Furthermore,
> this same sequence seems to work properly with the standard ALSA-Lib.
> 
> Test program is attached.  Any suggestions appreciated.
> 
> Thanks, Scott.
> 

After further investigation ... it appears that snd_pcm_open() in
salsa-lib-0.0.11:pcm.c is not properly recording/initializing the
pcm->stream field.


More information about the Alsa-devel mailing list