]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Use requested HDMI aspect ratio
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Thu, 19 Jul 2018 12:22:16 +0000 (08:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Aug 2018 19:33:31 +0000 (14:33 -0500)
commite11d41472a50742c16d53c968e143fb498fa482f
treeb588c0ba5aadfefd271a07186bbf6663f9350e66
parent16196776185cb19bb8c2318ebd1dbbefb5350d6a
drm/amd/display: Use requested HDMI aspect ratio

[Why]
The DRM mode's HDMI picture aspect ratio field was never saved in
dc_stream's timing struct. This causes us to mistake a new stream to
have the same timings as the old, even though the user has requested a
different aspect ratio.

[How]
Save DRM's aspect ratio field within dc_stream's timing struct.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107153
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Mikita Lipski <Mikita.Lipski@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c