disp: msm: allow DMS before cont-splash handoff

Currently dynamic mode-switch is allowed only after
the cont-splash handoff is handled during the first
frame. Remove this restriction for cmd-mode alone as
it can handle the use-case.

Change-Id: I5f9dc758f50a91fec0b9f710c74f2ea78c4e75eb
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
Cette révision appartient à :
Veera Sundaram Sankaran
2019-05-28 14:24:46 -07:00
Parent 5af1fe1891
révision bce30d62b7
2 fichiers modifiés avec 11 ajouts et 7 suppressions

Voir le fichier

@@ -6375,10 +6375,12 @@ int dsi_display_prepare(struct dsi_display *display)
dsi_display_ctrl_isr_configure(display, true);
if (mode->dsi_mode_flags & DSI_MODE_FLAG_DMS) {
if (display->is_cont_splash_enabled) {
pr_err("DMS is not supposed to be set on first frame\n");
if (display->is_cont_splash_enabled &&
display->config.panel_mode == DSI_OP_VIDEO_MODE) {
pr_err("DMS not supported on first frame\n");
return -EINVAL;
}
/* update dsi ctrl for new mode */
rc = dsi_display_pre_switch(display);
if (rc)