Lines Matching defs:ctrls
22 #include <media/v4l2-ctrls.h>
250 struct ov5640_ctrls ctrls;
267 ctrls.handler)->sd;
1737 bool auto_gain = sensor->ctrls.auto_gain->val == 1;
1738 bool auto_exp = sensor->ctrls.auto_exp->val == V4L2_EXPOSURE_AUTO;
2159 ret = v4l2_ctrl_handler_setup(&sensor->ctrls.handler);
2302 __v4l2_ctrl_s_ctrl_int64(sensor->ctrls.pixel_rate,
2479 u16 red = (u16)sensor->ctrls.red_balance->val;
2480 u16 blue = (u16)sensor->ctrls.blue_balance->val;
2494 struct ov5640_ctrls *ctrls = &sensor->ctrls;
2498 if (ctrls->auto_exp->is_new) {
2504 if (!auto_exp && ctrls->exposure->is_new) {
2517 if (ctrls->exposure->val < max_exp)
2518 ret = ov5640_set_exposure(sensor, ctrls->exposure->val);
2526 struct ov5640_ctrls *ctrls = &sensor->ctrls;
2529 if (ctrls->auto_gain->is_new) {
2535 if (!auto_gain && ctrls->gain->is_new)
2536 ret = ov5640_set_gain(sensor, ctrls->gain->val);
2643 sensor->ctrls.gain->val = val;
2649 sensor->ctrls.exposure->val = val;
2719 struct ov5640_ctrls *ctrls = &sensor->ctrls;
2720 struct v4l2_ctrl_handler *hdl = &ctrls->handler;
2729 ctrls->pixel_rate = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_PIXEL_RATE,
2734 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops,
2737 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE,
2739 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE,
2742 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops,
2746 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE,
2749 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN,
2751 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_ANALOGUE_GAIN,
2754 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION,
2756 ctrls->hue = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HUE,
2758 ctrls->contrast = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_CONTRAST,
2760 ctrls->test_pattern =
2764 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP,
2766 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP,
2769 ctrls->light_freq =
2780 ctrls->pixel_rate->flags |= V4L2_CTRL_FLAG_READ_ONLY;
2781 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE;
2782 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE;
2784 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false);
2785 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true);
2786 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true);
2894 __v4l2_ctrl_s_ctrl_int64(sensor->ctrls.pixel_rate,
3148 v4l2_ctrl_handler_free(&sensor->ctrls.handler);
3162 v4l2_ctrl_handler_free(&sensor->ctrls.handler);