From a8173227dbc02c0d264382a71db5144036352763 Mon Sep 17 00:00:00 2001 From: Sumit Bhattacharya Date: Mon, 6 Feb 2012 22:18:09 +0530 Subject: 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 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 Reviewed-by: Scott Peterson --- sound/pci/hda/hda_intel.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'sound') 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); -- cgit v1.2.3