summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
authorTakashi Iwai2012-11-19 14:14:58 +0100
committerTakashi Iwai2012-11-19 14:14:58 +0100
commit989c3187156ad197ae473fa9d9d506eef9624f12 (patch)
tree2f18bbd11a8811729e039ab1cb72cdc21f74254f /sound/pci/hda/hda_codec.h
parentMerge branch 'usb-midi-fix-3.7' of git://git.alsa-project.org/alsa-kprivate i... (diff)
downloadkernel-qcow2-linux-989c3187156ad197ae473fa9d9d506eef9624f12.tar.gz
kernel-qcow2-linux-989c3187156ad197ae473fa9d9d506eef9624f12.tar.xz
kernel-qcow2-linux-989c3187156ad197ae473fa9d9d506eef9624f12.zip
ALSA: hda - Fix recursive suspend/resume call
When the bus reset is performed during the suspend/resume (including the power-saving too), it calls snd_hda_suspend() and snd_hda_resume() again, and deadlocks eventually. For avoiding the recursive call, add a new flag indicating that the PM is being performed, and don't go to the bus reset mode when it's on. Reported-and-tested-by: Julian Wollrath <jwollrath@web.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r--sound/pci/hda/hda_codec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 507fe8a917b6..4f4e545c0f4b 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -869,6 +869,7 @@ struct hda_codec {
unsigned int power_on :1; /* current (global) power-state */
unsigned int d3_stop_clk:1; /* support D3 operation without BCLK */
unsigned int pm_down_notified:1; /* PM notified to controller */
+ unsigned int in_pm:1; /* suspend/resume being performed */
int power_transition; /* power-state in transition */
int power_count; /* current (global) power refcount */
struct delayed_work power_work; /* delayed task for powerdown */