Skip to content

Commit f609041

Browse files
charliu-AMDENGgregkh
authored andcommitted
drm/amd/display: Fix DP no audio issue
[ Upstream commit 3886b19 ] [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 bf5e396) Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 9f6cf07 commit f609041

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,13 +1096,13 @@ void dce110_enable_audio_stream(struct pipe_ctx *pipe_ctx)
10961096
if (dc->current_state->res_ctx.pipe_ctx[i].stream_res.audio != NULL)
10971097
num_audio++;
10981098
}
1099+
if (num_audio >= 1 && clk_mgr->funcs->enable_pme_wa) {
1100+
/*wake AZ from D3 first before access az endpoint*/
1101+
clk_mgr->funcs->enable_pme_wa(clk_mgr);
1102+
}
10991103

11001104
pipe_ctx->stream_res.audio->funcs->az_enable(pipe_ctx->stream_res.audio);
11011105

1102-
if (num_audio >= 1 && clk_mgr->funcs->enable_pme_wa)
1103-
/*this is the first audio. apply the PME w/a in order to wake AZ from D3*/
1104-
clk_mgr->funcs->enable_pme_wa(clk_mgr);
1105-
11061106
link_hwss->enable_audio_packet(pipe_ctx);
11071107

11081108
if (pipe_ctx->stream_res.audio)

0 commit comments

Comments
 (0)