mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
drm/rockchip: keep crtc private bus_format atomic
crtc private bus_format are used for multi connectors, so we need keep it atomic, otherwise may cause display abnormal. Change-Id: I188d70ac54eedba502609921ccd33e33314c265b Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
@@ -213,6 +213,8 @@ rockchip_dp_drm_encoder_atomic_check(struct drm_encoder *encoder,
|
||||
s->output_type = DRM_MODE_CONNECTOR_eDP;
|
||||
if (info->num_bus_formats)
|
||||
s->bus_format = info->bus_formats[0];
|
||||
else
|
||||
s->bus_format = MEDIA_BUS_FMT_RGB888_1X24;
|
||||
s->tv_state = &conn_state->tv;
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -743,6 +743,7 @@ static int cdn_dp_encoder_atomic_check(struct drm_encoder *encoder,
|
||||
|
||||
s->output_mode = ROCKCHIP_OUT_MODE_AAAA;
|
||||
s->output_type = DRM_MODE_CONNECTOR_DisplayPort;
|
||||
s->bus_format = MEDIA_BUS_FMT_RGB888_1X24;
|
||||
s->tv_state = &conn_state->tv;
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -1220,6 +1220,8 @@ dw_mipi_dsi_encoder_atomic_check(struct drm_encoder *encoder,
|
||||
s->output_type = DRM_MODE_CONNECTOR_DSI;
|
||||
if (info->num_bus_formats)
|
||||
s->bus_format = info->bus_formats[0];
|
||||
else
|
||||
s->bus_format = MEDIA_BUS_FMT_RGB888_1X24;
|
||||
s->tv_state = &conn_state->tv;
|
||||
|
||||
if (dsi->slave)
|
||||
|
||||
@@ -274,7 +274,8 @@ rockchip_tve_encoder_atomic_check(struct drm_encoder *encoder,
|
||||
s->output_type = DRM_MODE_CONNECTOR_TV;
|
||||
if (info->num_bus_formats)
|
||||
s->bus_format = info->bus_formats[0];
|
||||
s->bus_format = MEDIA_BUS_FMT_YUV8_1X24;
|
||||
else
|
||||
s->bus_format = MEDIA_BUS_FMT_YUV8_1X24;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -621,6 +621,8 @@ rockchip_lvds_encoder_atomic_check(struct drm_encoder *encoder,
|
||||
s->output_type = DRM_MODE_CONNECTOR_LVDS;
|
||||
if (info->num_bus_formats)
|
||||
s->bus_format = info->bus_formats[0];
|
||||
else
|
||||
s->bus_format = MEDIA_BUS_FMT_RGB888_1X24;
|
||||
s->tv_state = &conn_state->tv;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user