mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user