37cc0db
From 89b9366047f51fcef7f7e36f2b351a98326c8656 Mon Sep 17 00:00:00 2001
37cc0db
From: Hans de Goede <hdegoede@redhat.com>
37cc0db
Date: Tue, 12 Jul 2016 22:40:01 +0200
37cc0db
Subject: [PATCH] Revert "ALSA: hda - remove controller dependency on i915
37cc0db
 power well for SKL"
37cc0db
37cc0db
This reverts commit 03b135cebc47d75ea2dc346770374ab741966955.
37cc0db
---
37cc0db
 sound/pci/hda/hda_intel.c  | 4 +++-
37cc0db
 sound/pci/hda/patch_hdmi.c | 2 +-
37cc0db
 2 files changed, 4 insertions(+), 2 deletions(-)
37cc0db
37cc0db
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
37cc0db
index e320c44..290d60f 100644
37cc0db
--- a/sound/pci/hda/hda_intel.c
37cc0db
+++ b/sound/pci/hda/hda_intel.c
37cc0db
@@ -361,7 +361,9 @@ enum {
37cc0db
 #define CONTROLLER_IN_GPU(pci) (((pci)->device == 0x0a0c) || \
37cc0db
 					((pci)->device == 0x0c0c) || \
37cc0db
 					((pci)->device == 0x0d0c) || \
37cc0db
-					((pci)->device == 0x160c))
37cc0db
+					((pci)->device == 0x160c) || \
37cc0db
+					((pci)->device == 0xa170) || \
37cc0db
+					((pci)->device == 0x9d70))
37cc0db
 
37cc0db
 #define IS_SKL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa170)
37cc0db
 #define IS_SKL_LP(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x9d70)
37cc0db
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
37cc0db
index d0d5ad8..9203da1 100644
37cc0db
--- a/sound/pci/hda/patch_hdmi.c
37cc0db
+++ b/sound/pci/hda/patch_hdmi.c
37cc0db
@@ -2379,7 +2379,7 @@ static int patch_i915_hsw_hdmi(struct hda_codec *codec)
37cc0db
 	/* For Haswell/Broadwell, the controller is also in the power well and
37cc0db
 	 * can cover the codec power request, and so need not set this flag.
37cc0db
 	 */
37cc0db
-	if (!is_haswell(codec) && !is_broadwell(codec))
37cc0db
+	if (!is_haswell(codec) && !is_broadwell(codec) && !is_skylake(codec))
37cc0db
 		codec->core.link_power_control = 1;
37cc0db
 
37cc0db
 	codec->patch_ops.set_power_state = haswell_set_power_state;
37cc0db
-- 
37cc0db
2.7.4
37cc0db