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

Commit 52e9bffa authored by Sree Sesha Aravind Vadrevu's avatar Sree Sesha Aravind Vadrevu
Browse files

msm: mdss: Only use DSPP0 and DSPP1 for cmd mode split display



For command mode split display, due to hardware restrictions, only
the combination of DSPP0 and DSPP1 can be used.

Change-Id: I12feeb0807dd9a217a3f5540478c6d71fb4b8b80
CRs-fixed: 565993
Signed-off-by: default avatarSree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
parent 001053d2
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -469,7 +469,9 @@ static struct mdss_mdp_mixer *mdss_mdp_mixer_alloc(
		 * try to reserve first layer mixer for write back if
		 * assertive display needs to be supported through wfd
		 */
		if (ctl->mdata->has_wb_ad && ctl->intf_num) {
		if (ctl->mdata->has_wb_ad && ctl->intf_num &&
			((ctl->panel_data->panel_info.type != MIPI_CMD_PANEL) ||
			!mux)) {
			alt_mixer = mixer_pool;
			mixer_pool++;
			nmixers--;
@@ -740,6 +742,10 @@ 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 &&
			(ctl->panel_data->panel_info.type == MIPI_CMD_PANEL)) {
			pr_err("use only DSPP0 and DSPP1 with cmd split\n");
			return -EPERM;
		}
	}