File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5188,10 +5188,14 @@ static void drm_parse_cea_ext(struct drm_connector *connector,
5188
5188
5189
5189
/* The existence of a CEA block should imply RGB support */
5190
5190
info -> color_formats = DRM_COLOR_FORMAT_RGB444 ;
5191
- if (edid_ext [3 ] & EDID_CEA_YCRCB444 )
5192
- info -> color_formats |= DRM_COLOR_FORMAT_YCBCR444 ;
5193
- if (edid_ext [3 ] & EDID_CEA_YCRCB422 )
5194
- info -> color_formats |= DRM_COLOR_FORMAT_YCBCR422 ;
5191
+
5192
+ /* CTA DisplayID Data Block does not have byte #3 */
5193
+ if (edid_ext [0 ] == CEA_EXT ) {
5194
+ if (edid_ext [3 ] & EDID_CEA_YCRCB444 )
5195
+ info -> color_formats |= DRM_COLOR_FORMAT_YCBCR444 ;
5196
+ if (edid_ext [3 ] & EDID_CEA_YCRCB422 )
5197
+ info -> color_formats |= DRM_COLOR_FORMAT_YCBCR422 ;
5198
+ }
5195
5199
5196
5200
if (cea_db_offsets (edid_ext , & start , & end ))
5197
5201
return ;
You can’t perform that action at this time.
0 commit comments