Revert "mdp4: pcc: fix PCC disablement"

This reverts commit 52d9e81de2.

Change-Id: I30adec69a9db3235c1399a8b6681603d4f5cc089
This commit is contained in:
Simon Shields 2016-11-23 16:02:30 -08:00
parent 52d9e81de2
commit 191b2f2b60

View file

@ -515,7 +515,11 @@ static ssize_t mdp_set_rgb(struct device *dev,
memset(&pcc_cfg, 0, sizeof(struct mdp_pcc_cfg_data));
pcc_cfg.block = MDP_BLOCK_DMA_P;
pcc_cfg.ops = MDP_PP_OPS_ENABLE | MDP_PP_OPS_WRITE;
if (r == 32768 && g == 32768 && b == 32768)
pcc_cfg.ops = MDP_PP_OPS_DISABLE;
else
pcc_cfg.ops = MDP_PP_OPS_ENABLE;
pcc_cfg.ops |= MDP_PP_OPS_WRITE;
pcc_cfg.r.r = r;
pcc_cfg.g.g = g;
pcc_cfg.b.b = b;