drm/amd/display: Change HDMI judgement condition.
authorJinZe.Xu <JinZe.Xu@amd.com>
Tue, 21 Jul 2020 09:52:41 +0000 (17:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jun 2022 22:17:23 +0000 (18:17 -0400)
[Why & How]
Use dc_is_hdmi_signal to determine signal type.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: JinZe.Xu <JinZe.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index 82b74ee..fb6ffcb 100644 (file)
@@ -4374,7 +4374,7 @@ void core_link_enable_stream(
                        dp_set_dsc_enable(pipe_ctx, true);
        }
 
-       if (pipe_ctx->stream->signal == SIGNAL_TYPE_HDMI_TYPE_A) {
+       if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) {
                core_link_set_avmute(pipe_ctx, false);
        }
 }