| commit | 49e44e317fdb73d75a00a058df75a6b6fe172c08 | [log] [tgz] |
|---|---|---|
| author | Takashi Iwai <tiwai@suse.de> | Wed Nov 07 12:42:45 2012 +0100 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Nov 17 13:16:12 2012 -0800 |
| tree | abeaf4b344a9f59e76fce60b7d129d7fa6a36582 | |
| parent | 799c92f2aecb348e4a4c6dab80c7206e48caf201 [diff] |
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>