summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPadmanabhan Komanduru <pkomandu@codeaurora.org>2015-04-30 17:30:19 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:41:05 -0700
commit2ce6060ffa3bbe1b6ff36e13201564b274f56771 (patch)
tree94c2f4df8d396c6e30e4b2c1f64d7f2f1a9cacc3
parent231f5b9fd4b85835baed0313c323936781364814 (diff)
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: Padmanabhan Komanduru <pkomandu@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_ctl.c b/drivers/video/fbdev/msm/mdss_mdp_ctl.c
index 4b49b14af517..2ddb5b590efe 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_ctl.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_ctl.c
@@ -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;