hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/i2c/ov5640.c
....@@ -1942,9 +1942,9 @@
19421942 * "ov5640_set_stream_mipi()")
19431943 * [4] = 0 : Power up MIPI HS Tx
19441944 * [3] = 0 : Power up MIPI LS Rx
1945
- * [2] = 0 : MIPI interface disabled
1945
+ * [2] = 1 : MIPI interface enabled
19461946 */
1947
- ret = ov5640_write_reg(sensor, OV5640_REG_IO_MIPI_CTRL00, 0x40);
1947
+ ret = ov5640_write_reg(sensor, OV5640_REG_IO_MIPI_CTRL00, 0x44);
19481948 if (ret)
19491949 return ret;
19501950
....@@ -2748,7 +2748,7 @@
27482748 /* Auto/manual gain */
27492749 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN,
27502750 0, 1, 1, 1);
2751
- ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN,
2751
+ ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_ANALOGUE_GAIN,
27522752 0, 1023, 1, 0);
27532753
27542754 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION,