[alsa-devel] snd_pcm_writei BLOCKED

Clemens Ladisch clemens at ladisch.de
Tue Apr 26 09:54:23 CEST 2011

Irfan Shaikh wrote:
> I have created two threads
> 1)Thread 1 :  reads audio data from USB audio class hw:1,0   (Capture device : open in BLOCKING Mode )
> 2)Thread2 : writes audio data to playback device hw:0,0         (Playback device : open in BLOCKING Mode )
> First snd_pcm_writei() is succesfull in Thread 2
> Thread2 gets stuck/blocked in second snd_pcm_writei() and does not returns.

Is the second device in the running state?

> SASKEN BUSINESS DISCLAIMER: This message may contain ...

This e-mail contains public information intended for any subscriber of
this mailing list and for anybody else who bothers to read it; it will
be copied, disclosed and distributed to the public.  If you think you
are not the intended recipient, please commit suicide immediately.
These terms apply also to any e-mails quoted in, referenced from, or
answering this e-mail, and supersede any disclaimers in those e-mails.
Additionally, disclaimers in those e-mails will incur legal processing
fees of $42 per line; you have agreed to this by reading this disclaimer.


More information about the Alsa-devel mailing list