]> git.karo-electronics.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:42:45 +0000 (12:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:16:12 +0000 (13:16 -0800)
commit49e44e317fdb73d75a00a058df75a6b6fe172c08
treeabeaf4b344a9f59e76fce60b7d129d7fa6a36582
parent799c92f2aecb348e4a4c6dab80c7206e48caf201
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