ALSA: Avoid endless sleep after disconnect
authorTakashi Iwai <tiwai@suse.de>
Wed, 7 Nov 2012 11:44:13 +0000 (12:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:14:22 +0000 (13:14 -0800)
commit8a7173c58c8a1e25d7b2d572f045da837bb373bf
tree1b16fcddcaffe247fc152ec187c7e439c8c43d6c
parent40edba667959559aa4385a5ec047420fcfeb5f03
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