Skip to content

Commit 6db8e18

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 6a2049b commit 6db8e18

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
@@ -1098,13 +1098,13 @@ void dce110_enable_audio_stream(struct pipe_ctx *pipe_ctx)
10981098
if (dc->current_state->res_ctx.pipe_ctx[i].stream_res.audio != NULL)
10991099
num_audio++;
11001100
}
1101+
if (num_audio >= 1 && clk_mgr->funcs->enable_pme_wa) {
1102+
/*wake AZ from D3 first before access az endpoint*/
1103+
clk_mgr->funcs->enable_pme_wa(clk_mgr);
1104+
}
11011105

11021106
pipe_ctx->stream_res.audio->funcs->az_enable(pipe_ctx->stream_res.audio);
11031107

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

11101110
if (pipe_ctx->stream_res.audio)

0 commit comments

Comments
 (0)