diff options
| author | Benet Clark <benetc@codeaurora.org> | 2014-08-18 16:40:15 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:32:41 -0700 |
| commit | 153e6b81dd3d29bc06aef4c018be984eb279c00f (patch) | |
| tree | 4d3c092674e20de19560e3d58e17f340ecde960b | |
| parent | 915faf80ec72c710883109368e00507ef70c615d (diff) | |
msm: mdss: Check if PP has split mode enabled for PAv2 features
The option for split mode in PP only checks the enable flag of the
feature in order to enable the same in the DSPP opmode. The opmode bits for
PAv2 features need to be disabled if PA bit is disabled.
Change-Id: I72019d0d03703e0698cf8d4ccd8b8f9c17889653
Signed-off-by: Benet Clark <benetc@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_pp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_pp.c b/drivers/video/fbdev/msm/mdss_mdp_pp.c index 8ad71b0db00a..c5790d20a891 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pp.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pp.c @@ -1519,14 +1519,17 @@ static void pp_dspp_opmode_config(struct mdss_mdp_ctl *ctl, u32 num, u32 *opmode) { int side; + bool pa_side_enabled = false; side = pp_num_to_side(ctl, num); if (side < 0) return; - if (pp_sts_is_enabled(pp_sts->pa_sts, side)) + if (pp_sts_is_enabled(pp_sts->pa_sts, side)) { *opmode |= MDSS_MDP_DSPP_OP_PA_EN; /* PA_EN */ - if (mdp_rev >= MDSS_MDP_HW_REV_103) { + pa_side_enabled = true; + } + if (mdp_rev >= MDSS_MDP_HW_REV_103 && pa_side_enabled) { if (pp_sts->pa_sts & PP_STS_PA_HUE_MASK) *opmode |= MDSS_MDP_DSPP_OP_PA_HUE_MASK; if (pp_sts->pa_sts & PP_STS_PA_SAT_MASK) |
