Skip to content

Commit 9068e02

Browse files
catayloxjnikula
authored andcommitted
drm/edid: VSDB yCBCr420 Deep Color mode bit definitions
HDMI Forum VSDB YCBCR420 deep color capability bits are 2:0. Correct definitions in the header for the mask to work correctly. Fixes: e6a9a2c ("drm/edid: parse ycbcr 420 deep color information") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107893 Cc: <stable@vger.kernel.org> # v4.14+ Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Shashank Sharma <shashank.sharma@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/1538776335-12569-1-git-send-email-clinton.a.taylor@intel.com
1 parent 064253c commit 9068e02

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/gpu/drm/drm_edid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4282,7 +4282,7 @@ static void drm_parse_ycbcr420_deep_color_info(struct drm_connector *connector,
42824282
struct drm_hdmi_info *hdmi = &connector->display_info.hdmi;
42834283

42844284
dc_mask = db[7] & DRM_EDID_YCBCR420_DC_MASK;
4285-
hdmi->y420_dc_modes |= dc_mask;
4285+
hdmi->y420_dc_modes = dc_mask;
42864286
}
42874287

42884288
static void drm_parse_hdmi_forum_vsdb(struct drm_connector *connector,

include/drm/drm_edid.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ struct detailed_timing {
214214
#define DRM_EDID_HDMI_DC_Y444 (1 << 3)
215215

216216
/* YCBCR 420 deep color modes */
217-
#define DRM_EDID_YCBCR420_DC_48 (1 << 6)
218-
#define DRM_EDID_YCBCR420_DC_36 (1 << 5)
219-
#define DRM_EDID_YCBCR420_DC_30 (1 << 4)
217+
#define DRM_EDID_YCBCR420_DC_48 (1 << 2)
218+
#define DRM_EDID_YCBCR420_DC_36 (1 << 1)
219+
#define DRM_EDID_YCBCR420_DC_30 (1 << 0)
220220
#define DRM_EDID_YCBCR420_DC_MASK (DRM_EDID_YCBCR420_DC_48 | \
221221
DRM_EDID_YCBCR420_DC_36 | \
222222
DRM_EDID_YCBCR420_DC_30)

0 commit comments

Comments
 (0)