|
@@ -2588,7 +2588,6 @@ static int ov5640_init_controls(struct ov5640_dev *sensor)
|
|
|
v4l2_ctrl_new_std(hdl, ops,
|
|
v4l2_ctrl_new_std(hdl, ops,
|
|
|
V4L2_CID_PIXEL_RATE, 0, INT_MAX, 1,
|
|
V4L2_CID_PIXEL_RATE, 0, INT_MAX, 1,
|
|
|
55969920);
|
|
55969920);
|
|
|
- ctrls->pixel_rate->flags |= V4L2_CTRL_FLAG_READ_ONLY;
|
|
|
|
|
|
|
|
|
|
/* Auto/manual white balance */
|
|
/* Auto/manual white balance */
|
|
|
ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops,
|
|
ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops,
|
|
@@ -2637,6 +2636,7 @@ static int ov5640_init_controls(struct ov5640_dev *sensor)
|
|
|
goto free_ctrls;
|
|
goto free_ctrls;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ ctrls->pixel_rate->flags |= V4L2_CTRL_FLAG_READ_ONLY;
|
|
|
ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE;
|
|
ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE;
|
|
|
ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE;
|
|
ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE;
|
|
|
|
|
|