Commit 372a2eaf authored by hongao's avatar hongao Committed by Inki Dae

drm/exynos: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi

Once EDID is parsed, the monitor HDMI support information is available
through drm_display_info.is_hdmi.

This driver calls drm_detect_hdmi_monitor() to receive the same
information, which is less efficient.

Avoid calling drm_detect_hdmi_monitor() and use drm_display_info.is_hdmi
instead.
Signed-off-by: default avatarhongao <hongao@uniontech.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 32030592
...@@ -893,7 +893,7 @@ static int hdmi_get_modes(struct drm_connector *connector) ...@@ -893,7 +893,7 @@ static int hdmi_get_modes(struct drm_connector *connector)
if (!edid) if (!edid)
return -ENODEV; return -ENODEV;
hdata->dvi_mode = !drm_detect_hdmi_monitor(edid); hdata->dvi_mode = !connector->display_info.is_hdmi;
DRM_DEV_DEBUG_KMS(hdata->dev, "%s : width[%d] x height[%d]\n", DRM_DEV_DEBUG_KMS(hdata->dev, "%s : width[%d] x height[%d]\n",
(hdata->dvi_mode ? "dvi monitor" : "hdmi monitor"), (hdata->dvi_mode ? "dvi monitor" : "hdmi monitor"),
edid->width_cm, edid->height_cm); edid->width_cm, edid->height_cm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment