drm/amd/display: Use helper for determining HDMI signal
authorEric Bernstein <eric.bernstein@amd.com>
Mon, 24 Jun 2019 18:11:55 +0000 (14:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:27:24 +0000 (14:27 -0500)
Use helper to determine if HDMI signal when processing avmute.

Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index 595f2a3cfeb78b97c05ade212d65a2b0ff7aaaba..0c9b6403177499a12f11bf9407d1454bf2ed7404 100644 (file)
@@ -2860,7 +2860,7 @@ void core_link_set_avmute(struct pipe_ctx *pipe_ctx, bool enable)
 {
        struct dc  *core_dc = pipe_ctx->stream->ctx->dc;
 
-       if (pipe_ctx->stream->signal != SIGNAL_TYPE_HDMI_TYPE_A)
+       if (!dc_is_hdmi_signal(pipe_ctx->stream->signal))
                return;
 
        core_dc->hwss.set_avmute(pipe_ctx, enable);