summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>2013-08-10 01:08:50 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:19:59 -0700
commit181fe45da1502dde00ebe5dd1d488ecc74fcebc7 (patch)
treecf7a7cc4374c1a7d49adcc5c4fed9497ed34c42e
parent754bf27ee161e1a23f1ca227f7a44e0556b57879 (diff)
msm: mdss: Allow DMA pipe sharing only on WB mixer
DMA pipe can only be shared on the writeback mixer for concurrent line and block mode operations. Only allow sharing if the mixer attached to the pipe is already a writeback mixer. Change-Id: I9a0e5144fdf87f681493cd92d9cc809836ab1a5c Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_pipe.c b/drivers/video/fbdev/msm/mdss_mdp_pipe.c
index 3f75053a46b0..ade9f0d44e81 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_pipe.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_pipe.c
@@ -345,6 +345,8 @@ static struct mdss_mdp_pipe *mdss_mdp_pipe_init(struct mdss_mdp_mixer *mixer,
* shared as long as its attached to a writeback mixer
*/
pipe = mdata->dma_pipes + mixer->num;
+ if (pipe->mixer->type != MDSS_MDP_MIXER_TYPE_WRITEBACK)
+ return NULL;
mdss_mdp_pipe_map(pipe);
pr_debug("pipe sharing for pipe=%d\n", pipe->num);
} else {