media: rockchip: isp: default to NO_HDR if sensor Unimplemented RKMODULE_GET_HDR_CFG

Change-Id: I9abb7c48246d8303ef24012364c2c4d56c834df3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2025-04-27 17:33:16 +08:00
committed by Tao Huang
parent 59b5ac2a0f
commit 63f6206c76

View File

@@ -497,6 +497,7 @@ int rkisp_csi_get_hdr_cfg(struct rkisp_device *dev, void *arg)
struct rkmodule_hdr_cfg *cfg = arg;
struct v4l2_subdev *sd = NULL;
u32 type;
int ret;
if (dev->isp_inp & INP_CSI) {
type = MEDIA_ENT_F_CAM_SENSOR;
@@ -521,7 +522,13 @@ int rkisp_csi_get_hdr_cfg(struct rkisp_device *dev, void *arg)
return -EINVAL;
}
return v4l2_subdev_call(sd, core, ioctl, RKMODULE_GET_HDR_CFG, cfg);
ret = v4l2_subdev_call(sd, core, ioctl, RKMODULE_GET_HDR_CFG, cfg);
if (ret == -ENOIOCTLCMD) {
cfg->esp.mode = HDR_NORMAL_VC;
cfg->hdr_mode = NO_HDR;
ret = 0;
}
return ret;
}
int rkisp_csi_config_patch(struct rkisp_device *dev, bool is_pre_cfg)