Commit 5fdd03c7 authored by Ivan Lipski's avatar Ivan Lipski Committed by Alex Deucher
Browse files

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: default avatarIvan Lipski <ivan.lipski@amd.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Tested-by: default avatarDan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4fa94425
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1102,6 +1102,9 @@ void dce110_enable_audio_stream(struct pipe_ctx *pipe_ctx)
	if (!pipe_ctx->stream)
		return;

	if (dc_is_rgb_signal(pipe_ctx->stream->signal))
		return;

	dc = pipe_ctx->stream->ctx->dc;
	clk_mgr = dc->clk_mgr;
	link_hwss = get_link_hwss(pipe_ctx->stream->link, &pipe_ctx->link_res);
+1 −2
Original line number Diff line number Diff line
@@ -2666,7 +2666,6 @@ void link_set_dpms_on(
		enable_stream_features(pipe_ctx);
	update_psp_stream_config(pipe_ctx, false);

	if (!dc_is_rgb_signal(pipe_ctx->stream->signal))
	dc->hwss.enable_audio_stream(pipe_ctx);

	if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) {