]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: skip avmute action
authorBrandon Syu <Brandon.Syu@amd.com>
Tue, 6 Oct 2020 02:15:05 +0000 (10:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Oct 2020 17:30:38 +0000 (13:30 -0400)
[Why]
For some monitors,
they can't display under BIOS with avmute enabled.

[How]
Add monitor patch for skip avmute action.

Signed-off-by: Brandon Syu <Brandon.Syu@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_types.h

index fec87a2e210cf4445e668dad0fc71b72955a5f05..5652a072d9be3edd600c467fe64bab890413e753 100644 (file)
@@ -3283,8 +3283,9 @@ void core_link_disable_stream(struct pipe_ctx *pipe_ctx)
                        dc_is_virtual_signal(pipe_ctx->stream->signal))
                return;
 
-       if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) {
-               core_link_set_avmute(pipe_ctx, true);
+       if (!pipe_ctx->stream->sink->edid_caps.panel_patch.skip_avmute) {
+               if (dc_is_hdmi_signal(pipe_ctx->stream->signal))
+                       core_link_set_avmute(pipe_ctx, true);
        }
 
 #if defined(CONFIG_DRM_AMD_DC_HDCP)
index c36f0daefd83a3550d2c4bdda20f086fb6bc6af8..7ff8676daec9b94d95c37291361b5390c871a34f 100644 (file)
@@ -235,6 +235,7 @@ struct dc_panel_patch {
        unsigned int disable_fec;
        unsigned int extra_t3_ms;
        unsigned int max_dsc_target_bpp_limit;
+       unsigned int skip_avmute;
 };
 
 struct dc_edid_caps {