Lines Matching defs:ctrls
23 #include <media/v4l2-ctrls.h>
254 struct s5k6aa_ctrls ctrls;
302 return &container_of(ctrl->handler, struct s5k6aa, ctrls.handler)->sd;
469 unsigned int vflip = s5k6aa->ctrls.vflip->val ^ s5k6aa->inv_vflip;
479 struct s5k6aa_ctrls *ctrls = &s5k6aa->ctrls;
485 ret = s5k6aa_write(c, REG_SF_RGAIN, ctrls->gain_red->val);
491 ret = s5k6aa_write(c, REG_SF_GGAIN, ctrls->gain_green->val);
497 ret = s5k6aa_write(c, REG_SF_BGAIN, ctrls->gain_blue->val);
534 unsigned int exp_time = s5k6aa->ctrls.exposure->val;
550 ret = s5k6aa_set_user_gain(c, s5k6aa->ctrls.gain->val);
1369 struct s5k6aa_ctrls *ctrls = &s5k6aa->ctrls;
1370 struct v4l2_ctrl_handler *hdl = &ctrls->handler;
1376 ctrls->awb = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTO_WHITE_BALANCE,
1378 ctrls->gain_red = v4l2_ctrl_new_custom(hdl, &s5k6aa_ctrls[0], NULL);
1379 ctrls->gain_green = v4l2_ctrl_new_custom(hdl, &s5k6aa_ctrls[1], NULL);
1380 ctrls->gain_blue = v4l2_ctrl_new_custom(hdl, &s5k6aa_ctrls[2], NULL);
1381 v4l2_ctrl_auto_cluster(4, &ctrls->awb, 0, false);
1383 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0);
1384 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0);
1385 v4l2_ctrl_cluster(2, &ctrls->hflip);
1387 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops,
1391 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE,
1394 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN,
1396 v4l2_ctrl_auto_cluster(3, &ctrls->auto_exp, 0, false);