summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Salido-Moreno <adrianm@codeaurora.org>2013-04-29 12:33:39 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:16:44 -0700
commitd24330e257eb04ca7d34e67756d346b9bc716360 (patch)
tree97d881abd771b8569570c83392eac41feaa9bbe1
parent621d4e38824b7e5fa37b84437b4f58108bda5114 (diff)
msm: mdss: unstage target mixer stage when replacing pipe
If a new pipe comes in with mixer stage that is already taken, the pipe that is currently holding that mixer stage should first be unstaged. This ensures that only the pipe taking its place can be placed at that mixer stage, and avoid situations where error in programming may lead to previous pipe still being staged with incorrect parameters. CRs-Fixed: 481364 Change-Id: Ie6d3471c610833a9546e52bc5f3816ddb5cb4101 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_overlay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_overlay.c b/drivers/video/fbdev/msm/mdss_mdp_overlay.c
index fed13e63381b..73633258cae6 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_overlay.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_overlay.c
@@ -337,7 +337,7 @@ static int mdss_mdp_overlay_pipe_setup(struct msm_fb_data_type *mfd,
if (pipe && pipe->ndx != req->id) {
pr_debug("replacing pnum=%d at stage=%d mux=%d\n",
pipe->num, req->z_order, mixer_mux);
- pipe->params_changed = true;
+ mdss_mdp_mixer_pipe_unstage(pipe);
}
mixer = mdss_mdp_mixer_get(mdp5_data->ctl, mixer_mux);