[ALSA] Fix races in PCM OSS emulation
authorTakashi Iwai <tiwai@suse.de>
Tue, 14 Nov 2006 12:03:19 +0000 (13:03 +0100)
committerJaroslav Kysela <perex@server.perex.cz>
Wed, 20 Dec 2006 07:55:54 +0000 (08:55 +0100)
commite3a5d59a17e9a42e3f3e0e37342b2679bab2ff43
tree631335a715870175f194b4bfec4690e6041fed79
parentba8bdf8584c6f8af6d009dfd716ea5ee37fc15cd
[ALSA] Fix races in PCM OSS emulation

Fixed the race among multiple threads accessing the OSS PCM
instance concurrently by simply introducing a mutex for protecting
a setup of the PCM.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
include/sound/pcm_oss.h
sound/core/oss/pcm_oss.c