]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Use rwsem for disconnect protection
authorTakashi Iwai <tiwai@suse.de>
Mon, 15 Oct 2012 10:16:02 +0000 (12:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Oct 2012 10:07:00 +0000 (11:07 +0100)
commit98eb5b60ae028c25beefa6d1158618d6a7d76472
tree213e1b6e6ceaee42dc4f9ec74307794dc7a83b20
parenteb9caba248b0115a7ee8bf46036b99951f70e03f
ALSA: usb-audio: Use rwsem for disconnect protection

Replace mutex with rwsem for codec->shutdown protection so that
concurrent accesses are allowed.

Also add the protection to snd_usb_autosuspend() and
snd_usb_autoresume(), too.

Reported-by: Matthieu CASTET <matthieu.castet@parrot.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c
sound/usb/mixer.c
sound/usb/pcm.c
sound/usb/usbaudio.h