drm/bridge: synopsys: dw-hdmi: fix no display between kernel logo and android logo

def_mode picture_aspect_ratio is no HDMI_PICTURE_ASPECT_NONE,
but Android set mode, the picture_aspect_ratio is HDMI_PICTURE_ASPECT_NONE,
When comparing the new mode with the old mode, the two are inconsistent,
so the mode will be changed.

Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Change-Id: Ide07f9f7251a4ad22d4c27136005be77f1dfd4e2
This commit is contained in:
Shunqing Chen
2020-11-25 02:36:03 +00:00
committed by Algea Cao
parent 299266141e
commit fb7d5b0d6b

View File

@@ -2815,8 +2815,11 @@ static int dw_hdmi_connector_get_modes(struct drm_connector *connector)
mode = drm_mode_duplicate(connector->dev, ptr);
if (mode) {
if (!i)
if (!i) {
mode->type = DRM_MODE_TYPE_PREFERRED;
mode->picture_aspect_ratio =
HDMI_PICTURE_ASPECT_NONE;
}
drm_mode_probed_add(connector, mode);
ret++;
}