Skip to content

Commit 7e75aed

Browse files
Shunqing Chenrkhuangtao
authored andcommitted
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
1 parent c58e9f6 commit 7e75aed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/gpu/drm/bridge/synopsys/dw-hdmi.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2648,8 +2648,11 @@ static int dw_hdmi_connector_get_modes(struct drm_connector *connector)
26482648
def_modes,
26492649
31, i);
26502650
if (mode) {
2651-
if (!i)
2651+
if (!i) {
26522652
mode->type = DRM_MODE_TYPE_PREFERRED;
2653+
mode->picture_aspect_ratio =
2654+
HDMI_PICTURE_ASPECT_NONE;
2655+
}
26532656
drm_mode_probed_add(connector, mode);
26542657
ret++;
26552658
}

0 commit comments

Comments
 (0)