summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorLibin Yang <libin.yang@intel.com>2015-06-03 09:30:15 +0800
committerTakashi Iwai <tiwai@suse.de>2015-06-03 07:39:08 +0200
commit03b135cebc47d75ea2dc346770374ab741966955 (patch)
tree2d7d3c1353de701d837fca53499928a67c1930f5 /sound/pci/hda/hda_intel.c
parent0cbf324e90ef0d03b79eade46123479849f6b02b (diff)
downloadop-kernel-dev-03b135cebc47d75ea2dc346770374ab741966955.zip
op-kernel-dev-03b135cebc47d75ea2dc346770374ab741966955.tar.gz
ALSA: hda - remove controller dependency on i915 power well for SKL
For SKL, only the HDMI codec is in the display power well while the HD-A controller isn't. So the controller flag 'need_i915_power' is not set to release the display power after probe, and the codec flag 'link_power_control' is set to request/release the display power via bus link_power ops. Signed-off-by: Libin Yang <libin.yang@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index ea0df95..7933fb0 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -345,6 +345,11 @@ enum {
#define use_vga_switcheroo(chip) 0
#endif
+#define CONTROLLER_IN_GPU(pci) (((pci)->device == 0x0a0c) || \
+ ((pci)->device == 0x0c0c) || \
+ ((pci)->device == 0x0d0c) || \
+ ((pci)->device == 0x160c))
+
static char *driver_short_names[] = {
[AZX_DRIVER_ICH] = "HDA Intel",
[AZX_DRIVER_PCH] = "HDA Intel PCH",
@@ -1976,8 +1981,8 @@ static int azx_probe_continue(struct azx *chip)
* display codec needs the power and it can be released after probe.
*/
if (chip->driver_caps & AZX_DCAPS_I915_POWERWELL) {
- /* Baytral/Braswell controllers don't need this power */
- if (pci->device != 0x0f04 && pci->device != 0x2284)
+ /* HSW/BDW controllers need this power */
+ if (CONTROLLER_IN_GPU(pci))
hda->need_i915_power = 1;
err = snd_hdac_i915_init(bus);
OpenPOWER on IntegriCloud