From: Eric Bernstein Date: Mon, 24 Jun 2019 18:11:55 +0000 (-0400) Subject: drm/amd/display: Use helper for determining HDMI signal X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a280a71f5e4a7c4ed44ac2cacc9718bccbb2cf65;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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);