Lines Matching refs:ctrls

27 #include <media/v4l2-ctrls.h>
271 struct ov965x_ctrls ctrls;
417 return &container_of(ctrl->handler, struct ov965x, ctrls.handler)->sd;
545 ov965x->ctrls.update = 1;
562 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure;
637 ov965x->ctrls.blue_balance->val);
641 ov965x->ctrls.red_balance->val);
675 struct ov965x_ctrls *ctrls = &ov965x->ctrls;
682 if (ctrls->auto_gain->is_new) {
686 if (ctrls->auto_gain->val)
695 if (ctrls->gain->is_new && !auto_gain) {
696 unsigned int gain = ctrls->gain->val;
726 ctrls->gain->val = (1 << m) * (16 + (rgain & 0xf));
763 struct ov965x_ctrls *ctrls = &ov965x->ctrls;
768 if (ctrls->auto_exp->is_new) {
781 if (!auto_exposure && ctrls->exposure->is_new) {
782 unsigned int exposure = (ctrls->exposure->val * 100)
796 ctrls->exposure->val = ((exposure * ov965x->exp_row_interval)
802 v4l2_ctrl_activate(ov965x->ctrls.brightness, !exp);
810 if (ov965x->ctrls.hflip->val)
813 if (ov965x->ctrls.vflip->val)
878 ov965x->ctrls.gain->val = m * (16 + (gain & 0xf));
895 ov965x->ctrls.exposure->val = ((exposure *
991 struct ov965x_ctrls *ctrls = &ov965x->ctrls;
992 struct v4l2_ctrl_handler *hdl = &ctrls->handler;
1000 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops,
1003 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE,
1005 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE,
1008 ctrls->auto_exp =
1014 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops,
1018 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN,
1020 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN,
1023 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION,
1025 ctrls->brightness = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BRIGHTNESS,
1027 ctrls->sharpness = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SHARPNESS,
1030 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0);
1031 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0);
1033 ctrls->light_freq =
1048 ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE;
1049 ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE;
1051 v4l2_ctrl_auto_cluster(3, &ctrls->auto_wb, 0, false);
1052 v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true);
1053 v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true);
1054 v4l2_ctrl_cluster(2, &ctrls->hflip);
1279 struct ov965x_ctrls *ctrls = &ov965x->ctrls;
1320 return ov965x_set_banding_filter(ov965x, ctrls->light_freq->val);
1326 struct ov965x_ctrls *ctrls = &ov965x->ctrls;
1336 if (!ret && ctrls->update) {
1342 ret = v4l2_ctrl_handler_setup(&ctrls->handler);
1346 ctrls->update = 0;