drm/amd/display: Preserve original aspect ratio in create stream
authorTom Chung <chiahsuan.chung@amd.com>
Tue, 30 Jan 2024 07:34:08 +0000 (15:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Feb 2024 22:11:03 +0000 (17:11 -0500)
commit79f3e38f60e5b2416ba99804d83d22e69ae592a3
tree59e1b7ecba8b43732d42a974ec13b0e4ac7ea589
parent10cd2bf92b4cf64a9c044f2c9774461e526d526a
drm/amd/display: Preserve original aspect ratio in create stream

[Why]
The original picture aspect ratio in mode struct may have chance be
overwritten with wrong aspect ratio data in create_stream_for_sink().
It will create a different VIC output and cause HDMI compliance test
failed.

[How]
Preserve the original picture aspect ratio data during create the
stream.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c