diff mbox series

[21/21] ALSA: hda/hdmi - enable automatic runtime pm for AMD HDMI codecs by default

Message ID 20191028214216.1508370-22-alexander.deucher@amd.com (mailing list archive)
State New, archived
Headers show
Series Enable BACO for power savings (v2) | expand

Commit Message

Alex Deucher Oct. 28, 2019, 9:42 p.m. UTC
So that we can power down the GPU and audio to save power.

Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 sound/pci/hda/patch_hdmi.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Takashi Iwai Oct. 29, 2019, 5:51 a.m. UTC | #1
On Mon, 28 Oct 2019 22:42:16 +0100,
Alex Deucher wrote:
> 
> So that we can power down the GPU and audio to save power.
> 
> Acked-by: Evan Quan <evan.quan@amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

Reviewed-by: Takashi Iwai <tiwai@suse.de>


thanks,

Takashi
diff mbox series

Patch

diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index bea7b0961080..26613733f109 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -3779,6 +3779,7 @@  static int atihdmi_init(struct hda_codec *codec)
 					    ATI_VERB_SET_MULTICHANNEL_MODE,
 					    ATI_MULTICHANNEL_MODE_SINGLE);
 	}
+	codec->auto_runtime_pm = 1;
 
 	return 0;
 }