OSDN Git Service

drm/amd/display: adding ycbcr420 pixel encoding for hdmi
authorMikita Lipski <mikita.lipski@amd.com>
Wed, 4 Jul 2018 13:27:02 +0000 (09:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:40:04 +0000 (16:40 -0500)
commitfe61a2f1a57fea5d7b3d27d019fa67e1bc5b7079
tree33102852708da14aa169475ac09b04a8df138708
parent87e3f1366eaa82c78b826b38008987406470b03d
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.

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