Merge tag 'topic/i915-hda-componentized-2015-01-12' of git://anongit.freedesktop...
authorTakashi Iwai <tiwai@suse.de>
Tue, 13 Jan 2015 06:54:02 +0000 (07:54 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Jan 2015 06:54:02 +0000 (07:54 +0100)
1  2 
sound/pci/hda/hda_intel.c

index 23b35687025ad325c45989f380ee0df7acca7ffc,95a53999399073ced0218518494eb0ce2402fbb4..36d2f20db7a4201b999155e759e3e22b6fe3f753
@@@ -823,8 -799,11 +798,8 @@@ static int azx_suspend(struct device *d
  
        if (chip->msi)
                pci_disable_msi(chip->pci);
 -      pci_disable_device(pci);
 -      pci_save_state(pci);
 -      pci_set_power_state(pci, PCI_D3hot);
        if (chip->driver_caps & AZX_DCAPS_I915_POWERWELL)
-               hda_display_power(false);
+               hda_display_power(hda, false);
        return 0;
  }
  
@@@ -844,9 -823,18 +819,9 @@@ static int azx_resume(struct device *de
                return 0;
  
        if (chip->driver_caps & AZX_DCAPS_I915_POWERWELL) {
-               hda_display_power(true);
-               haswell_set_bclk(chip);
+               hda_display_power(hda, true);
+               haswell_set_bclk(hda);
        }
 -      pci_set_power_state(pci, PCI_D0);
 -      pci_restore_state(pci);
 -      if (pci_enable_device(pci) < 0) {
 -              dev_err(chip->card->dev,
 -                      "pci_enable_device failed, disabling device\n");
 -              snd_card_disconnect(card);
 -              return -EIO;
 -      }
 -      pci_set_master(pci);
        if (chip->msi)
                if (pci_enable_msi(pci) < 0)
                        chip->msi = 0;