Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Fix DP no audio issue

[why]
need to enable APG_CLOCK_ENABLE enable first
also need to wake up az from D3 before access az block

Reviewed-by: Swapnil Patel <swapnil.patel@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit bf5e396957acafd46003318965500914d5f4edfa)

authored by

Charlene Liu and committed by
Alex Deucher
3886b198 fd62aa13

+4 -4
+4 -4
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
··· 1118 1118 if (dc->current_state->res_ctx.pipe_ctx[i].stream_res.audio != NULL) 1119 1119 num_audio++; 1120 1120 } 1121 + if (num_audio >= 1 && clk_mgr->funcs->enable_pme_wa) { 1122 + /*wake AZ from D3 first before access az endpoint*/ 1123 + clk_mgr->funcs->enable_pme_wa(clk_mgr); 1124 + } 1121 1125 1122 1126 pipe_ctx->stream_res.audio->funcs->az_enable(pipe_ctx->stream_res.audio); 1123 - 1124 - if (num_audio >= 1 && clk_mgr->funcs->enable_pme_wa) 1125 - /*this is the first audio. apply the PME w/a in order to wake AZ from D3*/ 1126 - clk_mgr->funcs->enable_pme_wa(clk_mgr); 1127 1127 1128 1128 link_hwss->enable_audio_packet(pipe_ctx); 1129 1129