[alsa-devel] snd_pcm_drain and lockups
tiwai at suse.de
Wed Sep 5 15:22:29 CEST 2007
At Tue, 4 Sep 2007 23:03:27 +0200,
Arve Knudsen wrote:
> Users of the PortAudio library on top of ALSA-lib have reported that it may
> hang in a call to snd_pcm_drain. I have also been able to confirm that this
> can happen in conjunction with the dmix device at least. Can the ALSA
> developers please tell me how, if at all, snd_pcm_drain may be safely used?
> Is this function simply best avoided (snd_pcm_drop being the alternative)?
Of course, it's supposed to be safe to use :) But, it's hard to tell
you more unless I get the details in your case...
In which situation is it called? Are they multi-threaded?
More information about the Alsa-devel