Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce387c55 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Matt Wagantall
Browse files

msm: mdss: check for split display flag during LM allocation



Command mode split display is only supported on DSPP0 and
DSPP1. The current software logic doesn't check for split
display flag causing mixer allocation failure for single DSI
command mode panels on LM-1. Add the check to take care
of this.

Change-Id: Ia8e8f2550c921b2d62ad05b1b99c8bb7e5f54f09
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent 42d4bd37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2432,7 +2432,7 @@ int mdss_mdp_ctl_setup(struct mdss_mdp_ctl *ctl)
		if (!ctl->mixer_left) {
			pr_err("unable to allocate layer mixer\n");
			return -ENOMEM;
		} else if (ctl->mixer_left->num >= 1 &&
		} else if (split_fb && ctl->mixer_left->num >= 1 &&
			(ctl->panel_data->panel_info.type == MIPI_CMD_PANEL)) {
			pr_err("use only DSPP0 and DSPP1 with cmd split\n");
			return -EPERM;