mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user