]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Add a Panel Replay config option
authorChunTao Tso <ChunTao.Tso@amd.com>
Tue, 22 Oct 2024 06:54:50 +0000 (14:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Apr 2025 19:18:36 +0000 (15:18 -0400)
[Why]
Replay need special policy for the scenario Teams,
add a flag to imply apply special policy or not.

[How]
Add a config option intended for future use for video conferencing applications.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: ChunTao Tso <ChunTao.Tso@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_types.h
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c

index 1f8382db8599ad466dd196ddb92320d2b63a566e..9bfa9ac1b05f5a8dba76509667564757ddaa254c 100644 (file)
@@ -1132,6 +1132,8 @@ struct replay_config {
        bool low_rr_activated;
        /* Replay low refresh rate supported*/
        bool low_rr_supported;
+       /* Replay Video Conferencing Optimization Enabled */
+       bool replay_video_conferencing_optimization_enabled;
 };
 
 /* Replay feature flags*/
index 669ac1bc662cdeab4c16763222894819c46e6abe..da74c2b5854f3abdedba41235dd5ee713d7c5117 100644 (file)
@@ -1022,6 +1022,9 @@ bool edp_setup_replay(struct dc_link *link, const struct dc_stream_state *stream
                        &alpm_config.raw,
                        sizeof(alpm_config.raw));
        }
+
+       link->replay_settings.config.replay_video_conferencing_optimization_enabled = false;
+
        return true;
 }