Skip to content

Commit f73d929

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

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

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

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

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

11091109
if (pipe_ctx->stream_res.audio)

0 commit comments

Comments
 (0)