drm/rockchip: Set picture aspect to none when show kernel logo

Crtc mode will include picture aspect and generate umode's flags
will include picture aspect mask when show kernel logo. After hwc
start, DRM_CLIENT_CAP_ASPECT_RATIO will be set to 0, and the umode
hwc got will not include picture aspect. That will cause two modes
mismatch, leading to a resolution reconfiguration and cause display
err.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I4e3ad1263d9d462567d14ae4c77d7b1aa05ddb1c
This commit is contained in:
Algea Cao
2021-01-07 20:14:15 +08:00
committed by Tao Huang
parent eebb8c213f
commit 59ac9596a3

View File

@@ -713,6 +713,7 @@ static int setup_initial_state(struct drm_device *drm_dev,
if (ret)
goto error_conn;
mode->picture_aspect_ratio = HDMI_PICTURE_ASPECT_NONE;
ret = drm_atomic_set_mode_for_crtc(crtc_state, mode);
if (ret)
goto error_conn;