Skip to content

Commit 3886b19

Browse files
charliu-AMDENGalexdeucher
authored andcommitted
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 bf5e396)
1 parent fd62aa1 commit 3886b19

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
@@ -1118,13 +1118,13 @@ void dce110_enable_audio_stream(struct pipe_ctx *pipe_ctx)
11181118
if (dc->current_state->res_ctx.pipe_ctx[i].stream_res.audio != NULL)
11191119
num_audio++;
11201120
}
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+
}
11211125

11221126
pipe_ctx->stream_res.audio->funcs->az_enable(pipe_ctx->stream_res.audio);
11231127

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-
11281128
link_hwss->enable_audio_packet(pipe_ctx);
11291129

11301130
if (pipe_ctx->stream_res.audio)

0 commit comments

Comments
 (0)