]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Avoid doubly suspend after vga switcheroo
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Dec 2012 16:01:25 +0000 (17:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 Dec 2012 10:32:56 +0000 (11:32 +0100)
commitcd6bd87d4365b847c71aa3be36515b591b4b5711
treeec7198f923b216a9701943479560c219ffa8ab9f
parented1b4522e49eb422c33c18b561510a0da032f192
ALSA: hda - Avoid doubly suspend after vga switcheroo

The HD-audio driver artificially calls the suspend and the resume code
path in the VGA switcheroo state changes.  When a machine goes to
suspend, it tries to suspend the device again, and it stalls at
snd_power_wait().

This patch adds checks whether the devices were already in (forced)
suspend in PM callbacks for avoiding the doubly suspend.

Reported-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c