msm: mdss: update gamut color scale for non uniform only
Gamut color scale and offset should only be programmed if the table is non-uniform Change-Id: I55790d5076ef2aedc3c0593ca744b792bb66cdf5 Signed-off-by: Terence Hampson <thampson@codeaurora.org>
This commit is contained in:
parent
b4f8ec2c58
commit
0979290e6c
1 changed files with 2 additions and 1 deletions
|
@ -887,7 +887,8 @@ static int pp_gamut_set_config(char __iomem *base_addr,
|
|||
writel_relaxed(gamut_data->c0_data[i][j],
|
||||
base_addr + GAMUT_TABLE_UPPER_R);
|
||||
}
|
||||
if (i >= MDP_GAMUT_SCALE_OFF_TABLE_NUM)
|
||||
if ((i >= MDP_GAMUT_SCALE_OFF_TABLE_NUM) ||
|
||||
(!gamut_data->map_en))
|
||||
continue;
|
||||
for (j = 0; j < MDP_GAMUT_SCALE_OFF_SZ; j++) {
|
||||
writel_relaxed((gamut_data->scale_off_data[i][j]),
|
||||
|
|
Loading…
Add table
Reference in a new issue