From a280a71f5e4a7c4ed44ac2cacc9718bccbb2cf65 Mon Sep 17 00:00:00 2001 From: Eric Bernstein Date: Mon, 24 Jun 2019 14:11:55 -0400 Subject: [PATCH] drm/amd/display: Use helper for determining HDMI signal Use helper to determine if HDMI signal when processing avmute. Signed-off-by: Eric Bernstein Reviewed-by: Charlene Liu Acked-by: Leo Li Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index 595f2a3cfeb7..0c9b64031774 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -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); -- 2.30.2