From: Takashi Iwai Date: Tue, 4 Dec 2012 16:01:25 +0000 (+0100) Subject: ALSA: hda - Avoid doubly suspend after vga switcheroo X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~39^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5c215232dfb71d1cf2cc8627bdc2206726aa8a3;p=pandora-kernel.git 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 Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed