summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn31
diff options
context:
space:
mode:
authorWenjing Liu <wenjing.liu@amd.com>2022-10-20 11:46:32 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-10-24 14:35:27 -0400
commit14e2739c3695734bb4f5a0deca6fff4e10e5ef5d (patch)
tree982468ad85543e9a8ae242d8ef72203c386fc87d /drivers/gpu/drm/amd/display/dc/dcn31
parentbbfbf09d193ac831c40db50ef4b31d11548a9eef (diff)
downloadlinux-stable-14e2739c3695734bb4f5a0deca6fff4e10e5ef5d.tar.gz
linux-stable-14e2739c3695734bb4f5a0deca6fff4e10e5ef5d.tar.bz2
linux-stable-14e2739c3695734bb4f5a0deca6fff4e10e5ef5d.zip
drm/amd/display: refactor enable/disable audio stream hw sequence
[why] 1. As recommended by hardware team, don't enable APG when stream is not enabled. 2. Move audio stream encoder programming into link_hwss. [how] 1. Merge dp_audio_enable into enable audio stream hw sequence. 2. Move stream encoder programming into link hwss level to unify stream encoder programming interface. Tested-by: Mark Broadworth <mark.broadworth@amd.com> Reviewed-by: Charlene Liu <Charlene.Liu@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Wenjing Liu <wenjing.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn31')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c
index de5e18c2a3ac..2cec7131a96f 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c
@@ -134,8 +134,6 @@ static void apg31_se_audio_setup(
/* Disable forced mem power off */
REG_UPDATE(APG_MEM_PWR, APG_MEM_PWR_FORCE, 0);
-
- apg31_enable(apg);
}
static void apg31_audio_mute_control(