]> git.alsa-project.org Git - alsa-lib.git/commit
snd_pcm_dmix_close: raise semaphore if unable to discard
authorTakashi Iwai <tiwai@suse.de>
Thu, 18 Oct 2007 09:10:35 +0000 (11:10 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Oct 2007 09:10:35 +0000 (11:10 +0200)
commitd6093c58f3d950eb5e150e1b21ac55ac87aa1ea7
tree1fc14c7f952b35fd0fe7ed7793f32582f049be9d
parentc2e368e7f79fdb87e717cabf40597f6fe5fc4e95
snd_pcm_dmix_close: raise semaphore if unable to discard

This patch causes snd_pcm_dmix_close() to up a semaphore after downing it
if it is unable to discard it.  It prevents some deadlock that I am
getting when a couple of applications interact and one of them closes the
device and later re-opens it.

From: Mike Gorse <mgorse@mgorse.dhs.org>
src/pcm/pcm_dmix.c