summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>2018-05-02 13:19:20 +0300
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit9efe44fa663a0ae92fef3b0b7fd9996080606d01 (patch)
tree36addc8cd0c404f54b928039f76ebf9a3132df72 /include/drm
parent88eafd76348e3191afca5dae263c2add6f5e08aa (diff)
MLK-18163-1: drm: edid: fix HDMI2.0 deep color depth parsing
The drm_parse_ycbcr420_deep_color_info() is called only for HDMI 2.0, however the DC masks were incorrectly set. These were set according to HDMI 1.4 specification. This patch will set the deep color depth masks to the HDMI 2.x specs (see Table 10-6 in HDMI 2.x specs for field descriptions). Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_edid.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h
index 3130c0fe5d41..d15b7a782565 100644
--- a/include/drm/drm_edid.h
+++ b/include/drm/drm_edid.h
@@ -214,9 +214,9 @@ struct detailed_timing {
#define DRM_EDID_HDMI_DC_Y444 (1 << 3)
/* YCBCR 420 deep color modes */
-#define DRM_EDID_YCBCR420_DC_48 (1 << 6)
-#define DRM_EDID_YCBCR420_DC_36 (1 << 5)
-#define DRM_EDID_YCBCR420_DC_30 (1 << 4)
+#define DRM_EDID_YCBCR420_DC_48 (1 << 2)
+#define DRM_EDID_YCBCR420_DC_36 (1 << 1)
+#define DRM_EDID_YCBCR420_DC_30 (1 << 0)
#define DRM_EDID_YCBCR420_DC_MASK (DRM_EDID_YCBCR420_DC_48 | \
DRM_EDID_YCBCR420_DC_36 | \
DRM_EDID_YCBCR420_DC_30)