summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-08-14 15:18:26 +0200
committerJaroslav Kysela <perex@perex.cz>2007-10-16 15:58:55 +0200
commit0b7a2e9cefd7614e68520127751f76583498df6c (patch)
tree72c29a5ba4543873592710bc05425db04af15e50 /sound/pci/hda/hda_codec.c
parent9d99f312629802f4c45306ee07618ee4978b4adc (diff)
downloadblackbird-op-linux-0b7a2e9cefd7614e68520127751f76583498df6c.tar.gz
blackbird-op-linux-0b7a2e9cefd7614e68520127751f76583498df6c.zip
[ALSA] hda-intel - Don't do suspend if already powered down
In the power-saving mode, the suspend is done dynamically at power-down. So we don't have to call suspend stuff explicitly if it's already powered down. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index fc1ddf408b9b..0e923f3f0a80 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -2771,6 +2771,10 @@ int snd_hda_suspend(struct hda_bus *bus, pm_message_t state)
struct hda_codec *codec;
list_for_each_entry(codec, &bus->codec_list, list) {
+#ifdef CONFIG_SND_HDA_POWER_SAVE
+ if (!codec->power_on)
+ continue;
+#endif
hda_call_codec_suspend(codec);
}
return 0;
OpenPOWER on IntegriCloud