mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
media: i2c: imx415 support hdr change fps
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I847a1009c889d19727da31697dc2afd730e13174
This commit is contained in:
@@ -1541,6 +1541,9 @@ static int __imx415_start_stream(struct imx415 *imx415)
|
||||
return ret;
|
||||
|
||||
/* In case these controls are set before streaming */
|
||||
ret = __v4l2_ctrl_handler_setup(&imx415->ctrl_handler);
|
||||
if (ret)
|
||||
return ret;
|
||||
if (imx415->has_init_exp && imx415->cur_mode->hdr_mode != NO_HDR) {
|
||||
ret = imx415_ioctl(&imx415->subdev, PREISP_CMD_SET_HDRAE_EXP,
|
||||
&imx415->init_hdrae_exp);
|
||||
@@ -1549,12 +1552,6 @@ static int __imx415_start_stream(struct imx415 *imx415)
|
||||
"init exp fail in hdr mode\n");
|
||||
return ret;
|
||||
}
|
||||
} else {
|
||||
mutex_unlock(&imx415->mutex);
|
||||
ret = v4l2_ctrl_handler_setup(&imx415->ctrl_handler);
|
||||
mutex_lock(&imx415->mutex);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
return imx415_write_reg(imx415->client, IMX415_REG_CTRL_MODE,
|
||||
IMX415_REG_VALUE_08BIT, 0);
|
||||
|
||||
Reference in New Issue
Block a user