From: Alex Deucher Date: Fri, 22 Nov 2019 21:43:53 +0000 (-0500) Subject: ALSA: hda/hdmi - enable automatic runtime pm for AMD HDMI codecs by default X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8218df93b7c4b1c6d02c4f726029e10efa4b7ca2;p=uclinux-h8%2Flinux.git ALSA: hda/hdmi - enable automatic runtime pm for AMD HDMI codecs by default So that we can power down the GPU and audio to save power. Reviewed-by: Takashi Iwai Acked-by: Evan Quan Signed-off-by: Alex Deucher Link: https://lore.kernel.org/r/20191122214353.582899-5-alexander.deucher@amd.com Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index bffde594e204..f5a618fff1ec 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -4063,6 +4063,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; }