SALSA: snd_pcm_avail_update
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.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 8 lines · On Thu, 13 Sep 2007 18:55:55 -0400 "J. Scott Merritt"…
Using salsa-lib-0.0.11, cross-compiling to ARM ...
Despite my best efforts,
snd_pcm_avail_updateis always returning "broken pipe". I have checked thepcm_stateof the Capture Handle just beforesnd_pcm_avail_updateand it is "RUNNING'. But immediately aftersnd_pcm_avail_updateit always returns "XRUN". Furthermore, this same sequence seems to work properly with the standard ALSA-Lib.
Quoted 4 lines
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.