mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm/bridge: analogix_dp: add default mode when get edid failed
This will used when product use edp2hdmi or edp2vga output. Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: Idf02a0d1e1bcef579fb3d6117a5e89744bdaac8a
This commit is contained in:
@@ -223,6 +223,7 @@ static int rockchip_dp_get_modes(struct analogix_dp_plat_data *plat_data,
|
||||
struct drm_display_info *di = &connector->display_info;
|
||||
/* VOP couldn't output YUV video format for eDP rightly */
|
||||
u32 mask = DRM_COLOR_FORMAT_YCRCB444 | DRM_COLOR_FORMAT_YCRCB422;
|
||||
int ret = 0;
|
||||
|
||||
if ((di->color_formats & mask)) {
|
||||
DRM_DEBUG_KMS("Swapping display color format from YUV to RGB\n");
|
||||
@@ -231,7 +232,12 @@ static int rockchip_dp_get_modes(struct analogix_dp_plat_data *plat_data,
|
||||
di->bpc = 8;
|
||||
}
|
||||
|
||||
return 0;
|
||||
if (list_empty(&connector->probed_modes) && !plat_data->panel) {
|
||||
ret = rockchip_drm_add_modes_noedid(connector);
|
||||
DRM_ERROR("analogix dp get edid mode failed, use default mode\n");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rockchip_dp_bridge_attach(struct analogix_dp_plat_data *plat_data,
|
||||
|
||||
Reference in New Issue
Block a user