ALSA: HDA: Don't power up hda codec from resume
Sumit Bhattacharya [Mon, 6 Feb 2012 16:48:09 +0000 (21:48 +0530)]
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>

Rebase-Id: R57e7706d1bb98ebe0e77803b4b3f1c1ae0be84a2

sound/pci/hda/hda_intel.c

index 94b4c92..1b082a9 100644 (file)
@@ -2612,18 +2612,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);