mdp4: pcc: fix PCC disablement

MDP_PP_OPS_DISABLE flag doesn't exist on A family, using it actually
completely disables PCC

Change-Id: Ib174ca08f634f9b256178f977bd5d59db751ef7c
This commit is contained in:
Dave Daynard 2015-07-07 16:23:57 -04:00 committed by Simon Shields
parent ecf3da5bd5
commit 52d9e81de2

View file

@ -515,11 +515,7 @@ 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;
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.ops = MDP_PP_OPS_ENABLE | MDP_PP_OPS_WRITE;
pcc_cfg.r.r = r;
pcc_cfg.g.g = g;
pcc_cfg.b.b = b;