Skip to content

Commit 5fdd03c

Browse files
Ivan Lipskialexdeucher
authored andcommitted
drm/amd/display: Move RGB-type check for audio sync to DCE HW sequence
[Why&How] DVI-A & VGA connectors are applicable to DCE ASICs, so move them to dce110_hwseq.c to block audio sync on SIGNAL_TYPE_RGB for DCE ASICs. Signed-off-by: Ivan Lipski <ivan.lipski@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 4fa9442 commit 5fdd03c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,9 @@ void dce110_enable_audio_stream(struct pipe_ctx *pipe_ctx)
11021102
if (!pipe_ctx->stream)
11031103
return;
11041104

1105+
if (dc_is_rgb_signal(pipe_ctx->stream->signal))
1106+
return;
1107+
11051108
dc = pipe_ctx->stream->ctx->dc;
11061109
clk_mgr = dc->clk_mgr;
11071110
link_hwss = get_link_hwss(pipe_ctx->stream->link, &pipe_ctx->link_res);

drivers/gpu/drm/amd/display/dc/link/link_dpms.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,8 +2666,7 @@ void link_set_dpms_on(
26662666
enable_stream_features(pipe_ctx);
26672667
update_psp_stream_config(pipe_ctx, false);
26682668

2669-
if (!dc_is_rgb_signal(pipe_ctx->stream->signal))
2670-
dc->hwss.enable_audio_stream(pipe_ctx);
2669+
dc->hwss.enable_audio_stream(pipe_ctx);
26712670

26722671
if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) {
26732672
set_avmute(pipe_ctx, false);

0 commit comments

Comments
 (0)