Skip to content

Commit 24275dd

Browse files
Cai YiWeirkhuangtao
authored andcommitted
media: rockchip: isp: fix cac on/off for isp32
Change-Id: Ic5647d161c71d01c4fcfea519e4b17c2b3ce5a2b Signed-off-by: Cai YiWei <[email protected]>
1 parent d07683b commit 24275dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/media/platform/rockchip/isp/isp_params_v32.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3508,7 +3508,7 @@ isp_cac_config(struct rkisp_isp_params_vdev *params_vdev,
35083508
isp3_param_write(params_vdev, arg->hsize, ISP3X_MI_LUT_CAC_RD_H_WSIZE);
35093509
isp3_param_write(params_vdev, arg->vsize, ISP3X_MI_LUT_CAC_RD_V_SIZE);
35103510
if (ctrl & ISP3X_CAC_EN)
3511-
ctrl |= ISP3X_CAC_LUT_EN;
3511+
ctrl |= ISP3X_CAC_LUT_EN | ISP32_SELF_FORCE_UPD | ISP3X_CAC_LUT_MODE(3);
35123512
isp3_param_write(params_vdev, ctrl, ISP3X_CAC_CTRL);
35133513
}
35143514

@@ -3518,9 +3518,10 @@ isp_cac_enable(struct rkisp_isp_params_vdev *params_vdev, bool en)
35183518
u32 val;
35193519

35203520
val = isp3_param_read(params_vdev, ISP3X_CAC_CTRL);
3521-
val &= ~ISP3X_CAC_EN;
3521+
val &= ~(ISP3X_CAC_EN | ISP3X_CAC_LUT_EN | ISP32_SELF_FORCE_UPD);
35223522
if (en)
3523-
val |= ISP3X_CAC_EN | ISP3X_CAC_LUT_EN;
3523+
val |= ISP3X_CAC_EN | ISP3X_CAC_LUT_EN |
3524+
ISP32_SELF_FORCE_UPD | ISP3X_CAC_LUT_MODE(3);
35243525
isp3_param_write(params_vdev, val, ISP3X_CAC_CTRL);
35253526
}
35263527

0 commit comments

Comments
 (0)