[alsa-devel] snd_pcm_drop causing lockup with DMix

John Lindgren john.lindgren at tds.net
Sun Feb 28 16:37:21 CET 2010


A couple of weeks ago I reported a rather serious bug #4914 that can
cause a multi-threaded using ALSA to lock up so that it can only be
ended with SIGKILL.

I maintain the ALSA output part of Audacious, and I need to be able to
play audio in one thread of the program and then signal that thread to
stop from another.  The way to do this in ALSA, if I understand
correctly, is to interrupt the thread that is sending audio with a call
to snd_pcm_drop.  But using DMix makes the first thread hang up in a
snd_pcm_wait call with a timeout of -1.

Is anyone working on this bug?  Is there any more help I can provide?

John Lindgren

More information about the Alsa-devel mailing list