drm/amd/display: adding ycbcr420 pixel encoding for hdmi
authorMikita Lipski <mikita.lipski@amd.com>
Wed, 4 Jul 2018 21:26:26 +0000 (17:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 15:19:18 +0000 (10:19 -0500)
commita6311be8f062db5fe93a08a3722fae53a58f2499
tree80e3e9b2be3d00e1f75d70f7c1bae95f2fb2ca02
parentc660f40b711980b42d8beac4b395a10645b20d5d
drm/amd/display: adding ycbcr420 pixel encoding for hdmi

[why]
HDMI EDID's VSDB contains spectial timings for specifically
YCbCr 4:2:0 colour space. In those cases we need to verify
if the mode provided is one of the special ones has to use
YCbCr 4:2:0 pixel encoding for display info.
[how]
Verify if the mode is using specific ycbcr420 colour space with
the help of DRM helper function and assign the mode to use
ycbcr420 pixel encoding.

Tested-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c