ALSA: Avoid endless sleep after disconnect
authorTakashi Iwai <tiwai@suse.de>
Tue, 16 Oct 2012 14:43:39 +0000 (16:43 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Oct 2012 10:07:15 +0000 (11:07 +0100)
commit0914f7961babbf28aaa2f19b453951fb4841c03f
treefe5c14256a1d7b2116341300dd1e8ed94ac5f576
parenta0830dbd4e42b38aefdf3fb61ba5019a1a99ea85
ALSA: Avoid endless sleep after disconnect

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
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