Skip to contentSkip to conversation

SALSA: snd_pcm_avail_update

DISCUSSION J. Scott Merritt 1 participant 2 messages Sep 13, 2007 – Sep 14, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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_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.

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.