]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: usb-audio: Use rwsem for disconnect protection
authorTakashi Iwai <tiwai@suse.de>
Wed, 7 Nov 2012 11:39:53 +0000 (12:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:18:50 +0000 (13:18 -0800)
commitd8bd61294823b6e6604fc91217f9306685e11924
tree4b776ed7ea2deacbf5c2965159689b508864f956
parent35522de8494e895c621794f313a1c0526f1c18bd
ALSA: usb-audio: Use rwsem for disconnect protection

commit 34f3c89fda4fba9fe689db22253ca8db2f5e6386 upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/card.c
sound/usb/mixer.c
sound/usb/pcm.c
sound/usb/usbaudio.h