mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
media: rockchip: isp: limit ldch and gain for isp30
Change-Id: Ic942d86d28b4cbdc6703f00530bd1f247b541d6d Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -3512,8 +3512,13 @@ isp_gain_enable(struct rkisp_isp_params_vdev *params_vdev, bool en, u32 id)
|
||||
{
|
||||
struct rkisp_isp_params_val_v3x *priv_val =
|
||||
(struct rkisp_isp_params_val_v3x *)params_vdev->priv_val;
|
||||
u32 val = 0;
|
||||
u32 val = isp3_param_read_cache(params_vdev, ISP3X_LDCH_STS, id);
|
||||
|
||||
/* gain will affect ldch, no support for ldch and gain enable */
|
||||
if (val & ISP3X_MODULE_EN && en)
|
||||
return;
|
||||
|
||||
val = 0;
|
||||
if (en) {
|
||||
val |= priv_val->lut3d_en << 20 |
|
||||
priv_val->dhaz_en << 16 |
|
||||
|
||||
Reference in New Issue
Block a user