mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
drm: bridge/dw_hdmi: check is_hdmi2 in hdmi_config_AVI
If a display support HDMI2.0, it must support SCDC or YCbCr420. So we check the connector->scdc_present and mode->flags to check the connected display is HDMI 2.0. Change-Id: I3b868d43791089fcdef77f99ec90396553008b9a Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
@@ -1517,9 +1517,13 @@ static void hdmi_config_AVI(struct dw_hdmi *hdmi, struct drm_display_mode *mode)
|
||||
{
|
||||
struct hdmi_avi_infoframe frame;
|
||||
u8 val;
|
||||
bool is_hdmi2 = false;
|
||||
|
||||
if (hdmi_bus_fmt_is_yuv420(hdmi->hdmi_data.enc_out_bus_format) ||
|
||||
hdmi->connector.display_info.hdmi.scdc.supported)
|
||||
is_hdmi2 = true;
|
||||
/* Initialise info frame from DRM mode */
|
||||
drm_hdmi_avi_infoframe_from_display_mode(&frame, mode, false);
|
||||
drm_hdmi_avi_infoframe_from_display_mode(&frame, mode, is_hdmi2);
|
||||
|
||||
if (hdmi_bus_fmt_is_yuv444(hdmi->hdmi_data.enc_out_bus_format))
|
||||
frame.colorspace = HDMI_COLORSPACE_YUV444;
|
||||
|
||||
Reference in New Issue
Block a user