Lines Matching defs:ctrls

26 #include <media/v4l2-ctrls.h>
269 struct ov965x_ctrls ctrls;
415 return &container_of(ctrl->handler, struct ov965x, ctrls.handler)->sd;
543 ov965x->ctrls.update = 1;
560 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure;
635 ov965x->ctrls.blue_balance->val);
639 ov965x->ctrls.red_balance->val);
673 struct ov965x_ctrls *ctrls = &ov965x->ctrls;
680 if (ctrls->auto_gain->is_new) {
684 if (ctrls->auto_gain->val)
693 if (ctrls->gain->is_new && !auto_gain) {
694 unsigned int gain = ctrls->gain->val;
724 ctrls->gain->val = (1 << m) * (16 + (rgain & 0xf));
761 struct ov965x_ctrls *ctrls = &ov965x->ctrls;
766 if (ctrls->auto_exp->is_new) {
779 if (!auto_exposure && ctrls->exposure->is_new) {
780 unsigned int exposure = (ctrls->exposure->val * 100)
794 ctrls->exposure->val = ((exposure * ov965x->exp_row_interval)
800 v4l2_ctrl_activate(ov965x->ctrls.brightness, !exp);
808 if (ov965x->ctrls.hflip->val)
811 if (ov965x->ctrls.vflip->val)
876 ov965x->ctrls.gain->val = m * (16 + (gain & 0xf));
893 ov965x->ctrls.exposure->val = ((exposure *
989 struct ov965x_ctrls *ctrls = &ov965x->ctrls;
990 struct v4l2_ctrl_handler *hdl = &ctrls->handler;
998 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops,
1001 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE,
1003 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE,
1006 ctrls->auto_exp =
1012 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops,
1016 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN,
1018 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN,
1021 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION,
1023 ctrls->brightness = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BRIGHTNESS,
1025 ctrls->sharpness = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SHARPNESS,
1028 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0);
1029 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0);
1031 ctrls->light_freq =
1046 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE;
1047 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE;
1049 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false);
1050 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true);
1051 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true);
1052 v4l2_ctrl_cluster(2, &ctrls->hflip);
1278 struct ov965x_ctrls *ctrls = &ov965x->ctrls;
1319 return ov965x_set_banding_filter(ov965x, ctrls->light_freq->val);
1325 struct ov965x_ctrls *ctrls = &ov965x->ctrls;
1335 if (!ret && ctrls->update) {
1341 ret = v4l2_ctrl_handler_setup(&ctrls->handler);
1345 ctrls->update = 0;