diff options
author | Lu, Han <han.lu@intel.com> | 2015-06-09 04:50:38 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-06-09 05:58:37 -0400 |
commit | 2377c3c388815cd0a33309a6b6bb713600258a3e (patch) | |
tree | da7b9b3a68af524d4d8c598c6ba6c8d59db097e9 /sound/pci/hda/patch_hdmi.c | |
parent | 8654844cf51d434dad5d4d9f48dc99d1ac89aad7 (diff) |
ALSA: hda: Intel: enable automatic runtime pm for HDMI codecs by default
Enable runtime PM of the HDMI audio codec on the latest Intel platforms.
So the HD-A controller or HDMI codec can suspend when idle timeout by
default and release the GFX power well.
The patch influences HSW/BDW/BYT/BSW/SKL. Eariler platforms and third
party analog codecs will not be influenced.
Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_hdmi.c')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 407978b6db66..f8527342a150 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c | |||
@@ -2356,6 +2356,10 @@ static int patch_generic_hdmi(struct hda_codec *codec) | |||
2356 | codec->dp_mst = true; | 2356 | codec->dp_mst = true; |
2357 | } | 2357 | } |
2358 | 2358 | ||
2359 | /* Enable runtime pm for HDMI audio codec of HSW/BDW/SKL/BYT/BSW */ | ||
2360 | if (is_haswell_plus(codec) || is_valleyview_plus(codec)) | ||
2361 | codec->auto_runtime_pm = 1; | ||
2362 | |||
2359 | generic_hdmi_init_per_pins(codec); | 2363 | generic_hdmi_init_per_pins(codec); |
2360 | 2364 | ||
2361 | init_channel_allocations(); | 2365 | init_channel_allocations(); |