summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorSumit Bhattacharya <sumitb@nvidia.com>2012-02-06 22:18:09 +0530
committerSimone Willett <swillett@nvidia.com>2012-03-02 20:39:25 -0800
commita8173227dbc02c0d264382a71db5144036352763 (patch)
tree9157763b9c78a9f162be858fc5a613d4410e067f /sound
parent31cb48d4b2d4ceede7a3b48af731dfa81336a6b4 (diff)
ALSA: HDA: Don't power up hda codec from resume
Remove snd_hda_power_up()/snd_hda_power_down() sequence from HDA codec resume since it add around 90ms delay. This code was not essential for HDA driver to work properly after suspend-resume cycle. Bug 932606 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/80040 (cherry picked from commit 2ed8667c2bdfd4c8cbe371530b066b537aa9ae62) Change-Id: I0ffb120eb0a54f6c4e20aaf96c5ac2d0f5ab6949 Reviewed-on: http://git-master/r/87188 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_intel.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 702af98e8ae3..2407913c9555 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2494,18 +2494,6 @@ static int azx_resume(struct azx *chip)
if (snd_hda_codecs_inuse(chip->bus))
azx_init_chip(chip, 1);
-#if defined(CONFIG_SND_HDA_PLATFORM_DRIVER) && \
- defined(CONFIG_SND_HDA_POWER_SAVE)
- else if (chip->driver_type == AZX_DRIVER_NVIDIA_TEGRA) {
- struct hda_bus *bus = chip->bus;
- struct hda_codec *c;
-
- list_for_each_entry(c, &bus->codec_list, list) {
- snd_hda_power_up(c);
- snd_hda_power_down(c);
- }
- }
-#endif
snd_hda_resume(chip->bus);
snd_power_change_state(card, SNDRV_CTL_POWER_D0);