ALSA: Avoid endless sleep after disconnect
authorTakashi Iwai <tiwai@suse.de>
Wed, 7 Nov 2012 11:42:48 +0000 (12:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:16:13 +0000 (13:16 -0800)
commit9de4f2694044af68a826a568f0c97b1b83b5b173
tree3b6d62d4b5f8365cbcd1dba79e13be1af6839138
parent41a496238dae4c117548be819b0a3b3edbc48dc8
ALSA: Avoid endless sleep after disconnect

commit 0914f7961babbf28aaa2f19b453951fb4841c03f upstream.

When disconnect callback is called, each component should wake up
sleepers and check card->shutdown flag for avoiding the endless sleep
blocking the proper resource release.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/control.c
sound/core/hwdep.c
sound/core/oss/pcm_oss.c
sound/core/pcm.c
sound/core/pcm_native.c
sound/core/rawmidi.c