summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhartha Agrawal <agrawals@codeaurora.org>2014-03-20 14:42:47 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:28:21 -0700
commitb6951a84267a33d64685c11ab22abdb8e69deb0b (patch)
tree714e10d39883a40e495d11ea2a7ef90557da43e0
parent6aa4f06269ef669ac2fcd976e1886e2837a40ef9 (diff)
msm: mdss: Fix incorrect fbc parameter bit offset
Fix bit offset for lossy RGB threshold in the lossy mode FBC register. This fixes incorrect fbc parameters being set. Change-Id: I5e772cc1a8244bad8a236dca561552c4eb516d98 Signed-off-by: Siddhartha Agrawal <agrawals@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 43f058e835f1..748647ae3dae 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_ctl.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_ctl.c
@@ -1325,7 +1325,7 @@ static int mdss_mdp_ctl_fbc_enable(int enable,
lossy_mode = ((fbc->lossless_mode_thd) << 16) |
((fbc->lossy_mode_thd) << 8) |
- ((fbc->lossy_rgb_thd) << 3) | fbc->lossy_mode_idx;
+ ((fbc->lossy_rgb_thd) << 4) | fbc->lossy_mode_idx;
}
mdss_mdp_pingpong_write(mixer, MDSS_MDP_REG_PP_FBC_MODE, mode);