mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
ecf3da5bd5
commit
52d9e81de2
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue