linux (NXP iMX8): patches included in 5.17.2

This commit is contained in:
Rudi Heitbaum 2022-04-05 11:16:56 +00:00
parent e919c85902
commit be5c5e4f32
2 changed files with 5 additions and 5 deletions

View File

@ -1124,10 +1124,10 @@ index 000000000000..da40f62617ef
+ } + }
+ +
+ /* Any defined maximum tmds clock limit we must not exceed*/ + /* Any defined maximum tmds clock limit we must not exceed*/
+ if ((di->edid_hdmi_dc_modes & DRM_EDID_HDMI_DC_36) && + if ((di->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_36) &&
+ (mode->clock * 3 / 2 <= di->max_tmds_clock)) + (mode->clock * 3 / 2 <= di->max_tmds_clock))
+ video->color_depth = 12; + video->color_depth = 12;
+ else if ((di->edid_hdmi_dc_modes & DRM_EDID_HDMI_DC_30) && + else if ((di->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_30) &&
+ (mode->clock * 5 / 4 <= di->max_tmds_clock)) + (mode->clock * 5 / 4 <= di->max_tmds_clock))
+ video->color_depth = 10; + video->color_depth = 10;
+ +

View File

@ -80,14 +80,14 @@ index 1e5130e295f7..2796252adf68 100644
- } - }
+ video->color_fmt = YCBCR_4_2_2; + video->color_fmt = YCBCR_4_2_2;
+ +
+ if (!(di->edid_hdmi_dc_modes & DRM_EDID_HDMI_DC_36)) + if (!(di->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_36))
+ return false; + return false;
- /* Any defined maximum tmds clock limit we must not exceed*/ - /* Any defined maximum tmds clock limit we must not exceed*/
- if ((di->edid_hdmi_dc_modes & DRM_EDID_HDMI_DC_36) && - if ((di->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_36) &&
- (mode->clock * 3 / 2 <= di->max_tmds_clock)) - (mode->clock * 3 / 2 <= di->max_tmds_clock))
video->color_depth = 12; video->color_depth = 12;
- else if ((di->edid_hdmi_dc_modes & DRM_EDID_HDMI_DC_30) && - else if ((di->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_30) &&
- (mode->clock * 5 / 4 <= di->max_tmds_clock)) - (mode->clock * 5 / 4 <= di->max_tmds_clock))
- video->color_depth = 10; - video->color_depth = 10;