mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm/amd/display: Clean up FreeSync capability detection
Many duplicate codes can be extracted to common code, fill amdgpu_dm_connector fields outside of the DP/eDP, HDMI branches, pull the VSDB data once using get_amd_vsdb() and then derive the refresh rate ranges. When a monitor advertises support for FreeSync, the refresh rate from the AMD VSDB is used, otherwise, falls back on the monitor_range, either EDID refresh rate range field or DisplayID VRR data. Signed-off-by: Alex Huang <Alex.Huang2@amd.com> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Link: https://patch.msgid.link/20260804143339.714548-4-Alex.Huang2@amd.com (Adjust for movement to amdgpu_dm_connector.c) Signed-off-by: Mario Limonciello <superm1@kernel.org>
This commit is contained in:
parent
f65198b3d0
commit
ee28f3446d
1 changed files with 38 additions and 44 deletions
Loading…
Add table
Add a link
Reference in a new issue