Searched refs:ctrls (Results 1 - 25 of 135) sorted by relevance

123456

/drivers/media/video/gspca/
H A Dautogain_functions.h38 orig_gain = gain = sd->ctrls[GAIN].val;
39 orig_exposure = exposure = sd->ctrls[EXPOSURE].val;
54 else if (gain > sd->ctrls[GAIN].def)
56 else if (exposure > sd->ctrls[EXPOSURE].min)
58 else if (gain > sd->ctrls[GAIN].min)
63 if (gain < sd->ctrls[GAIN].def)
69 else if (exposure < sd->ctrls[EXPOSURE].max)
71 else if (gain < sd->ctrls[GAIN].max)
79 sd->ctrls[GAIN].val = gain;
84 sd->ctrls[EXPOSUR
[all...]
H A Dmars.c48 struct gspca_ctrl ctrls[NCTRLS]; member in struct:sd
206 gspca_dev->usb_buf[1] = sd->ctrls[BRIGHTNESS].val;
215 val = sd->ctrls[COLORS].val;
227 gspca_dev->usb_buf[1] = sd->ctrls[GAMMA].val * 0x40;
236 gspca_dev->usb_buf[1] = sd->ctrls[SHARPNESS].val * 4 + 3;
245 if (sd->ctrls[ILLUM_TOP].val)
247 else if (sd->ctrls[ILLUM_BOT].val)
264 cam->ctrls = sd->ctrls;
304 data[7] = sd->ctrls[GAMM
[all...]
H A Dvicam.c54 struct gspca_ctrl ctrls[NCTRL]; member in struct:sd
151 req_data[0] = sd->ctrls[GAIN].val;
167 if (sd->ctrls[EXPOSURE].val < 256) {
169 req_data[4] = 255 - sd->ctrls[EXPOSURE].val;
177 req_data[6] = sd->ctrls[EXPOSURE].val & 0xFF;
178 req_data[7] = sd->ctrls[EXPOSURE].val >> 8;
256 cam->ctrls = sd->ctrls;
343 .ctrls = sd_ctrls,
H A Dov534.c75 struct gspca_ctrl ctrls[NCTRLS]; member in struct:sd
963 val = sd->ctrls[BRIGHTNESS].val;
978 val = sd->ctrls[CONTRAST].val;
990 if (sd->ctrls[AGC].val)
993 val = sd->ctrls[GAIN].val;
1020 if (sd->ctrls[AEC].val)
1023 val = sd->ctrls[EXPOSURE].val;
1045 if (sd->ctrls[AGC].val) {
1064 if (sd->ctrls[AWB].val) {
1087 if (sd->ctrls[AE
[all...]
H A Dsonixb.c73 struct gspca_ctrl ctrls[NCTRLS]; member in struct:sd
627 i2cOV[3] = sd->ctrls[BRIGHTNESS].val;
645 if (sd->ctrls[BRIGHTNESS].val < 127) {
649 i2cpbright[4] = 127 - sd->ctrls[BRIGHTNESS].val;
651 i2cpbright[4] = sd->ctrls[BRIGHTNESS].val - 127;
668 u8 gain = sd->ctrls[GAIN].val;
773 gain = sd->ctrls[GAIN].val >> 1;
779 gain = sd->ctrls[GAIN].val >> 4;
801 u16 reg = sd->ctrls[EXPOSURE].val * 6;
814 u8 reg = sd->ctrls[EXPOSUR
[all...]
H A Djeilinj.c69 struct gspca_ctrl ctrls[NCTRLS]; member in struct:sd
150 freq_commands[0][1] |= (sd->ctrls[LIGHTFREQ].val >> 1);
182 autogain_commands[1][1] = (sd->ctrls[AUTOGAIN].val << 4);
196 setred_commands[1][1] = sd->ctrls[RED].val;
210 setgreen_commands[1][1] = sd->ctrls[GREEN].val;
224 setblue_commands[1][1] = sd->ctrls[BLUE].val;
406 gspca_dev->cam.ctrls = dev->ctrls;
552 .ctrls = sd_ctrls,
H A Dpac7302.c96 struct gspca_ctrl ctrls[NCTRLS]; member in struct:sd
506 gspca_dev->cam.ctrls = sd->ctrls;
527 v += (sd->ctrls[BRIGHTNESS].val - BRIGHTNESS_MAX)
529 v -= delta[i] * sd->ctrls[CONTRAST].val / CONTRAST_MAX;
553 v = a[i] * sd->ctrls[COLORS].val / COLOR_MAX + b[i];
565 reg_w(gspca_dev, 0xc6, sd->ctrls[WHITE_BALANCE].val);
575 reg_w(gspca_dev, 0xc5, sd->ctrls[RED_BALANCE].val);
585 reg_w(gspca_dev, 0xc7, sd->ctrls[BLUE_BALANCE].val);
595 reg_w(gspca_dev, 0x10, sd->ctrls[GAI
[all...]
H A Dstk014.c45 struct gspca_ctrl ctrls[NCTRLS]; member in struct:sd
264 + (sd->ctrls[BRIGHTNESS].val << 16);
274 + (sd->ctrls[CONTRAST].val << 16);
284 + (sd->ctrls[COLORS].val << 16);
292 set_par(gspca_dev, sd->ctrls[LIGHTFREQ].val == 1
305 gspca_dev->cam.ctrls = sd->ctrls;
484 .ctrls = sd_ctrls,
H A Dgspca.c1009 ctrl = gspca_dev->cam.ctrls;
1421 const struct ctrl *ctrls; local
1424 for (i = 0, ctrls = gspca_dev->sd_desc->ctrls;
1426 i++, ctrls++) {
1429 if (id == ctrls->qctrl.id)
1439 const struct ctrl *ctrls; local
1452 if (gspca_dev->sd_desc->ctrls[i].qctrl.id < id)
1455 && gspca_dev->sd_desc->ctrls[i].qctrl.id
1456 > gspca_dev->sd_desc->ctrls[id
1482 const struct ctrl *ctrls; local
1531 const struct ctrl *ctrls; local
[all...]
H A Dse401.c67 struct gspca_ctrl ctrls[NCTRL]; member in struct:sd
236 sd->ctrls[BRIGHTNESS].val, 0);
242 u16 gain = 63 - sd->ctrls[GAIN].val;
255 int integration = sd->ctrls[EXPOSURE].val << 6;
265 if (sd->ctrls[FREQ].val == V4L2_CID_POWER_LINE_FREQUENCY_50HZ)
267 if (sd->ctrls[FREQ].val == V4L2_CID_POWER_LINE_FREQUENCY_60HZ)
378 cam->ctrls = sd->ctrls;
720 .ctrls = sd_ctrls,
/drivers/media/radio/wl128x/
H A Dfmdrv_v4l2.h28 #include <media/v4l2-ctrls.h>
/drivers/media/video/
H A Dadp1653.c155 container_of(ctrl->handler, struct adp1653_flash, ctrls);
181 container_of(ctrl->handler, struct adp1653_flash, ctrls);
214 v4l2_ctrl_handler_init(&flash->ctrls, 9);
217 v4l2_ctrl_new_std_menu(&flash->ctrls, &adp1653_ctrl_ops,
220 v4l2_ctrl_new_std_menu(&flash->ctrls, &adp1653_ctrl_ops,
223 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops,
225 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops,
228 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops,
234 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops,
240 v4l2_ctrl_new_std(&flash->ctrls,
[all...]
H A Das3645a.c35 #include <media/v4l2-ctrls.h>
126 struct v4l2_ctrl_handler ctrls; member in struct:as3645a
327 container_of(ctrl->handler, struct as3645a, ctrls);
374 container_of(ctrl->handler, struct as3645a, ctrls);
722 v4l2_ctrl_handler_init(&flash->ctrls, 10);
725 v4l2_ctrl_new_std_menu(&flash->ctrls, &as3645a_ctrl_ops,
730 v4l2_ctrl_new_std_menu(&flash->ctrls, &as3645a_ctrl_ops,
739 v4l2_ctrl_new_std(&flash->ctrls, &as3645a_ctrl_ops,
743 v4l2_ctrl_new_std(&flash->ctrls, &as3645a_ctrl_ops,
747 ctrl = v4l2_ctrl_new_std(&flash->ctrls,
[all...]
H A Dmt9t001.c23 #include <media/v4l2-ctrls.h>
122 struct v4l2_ctrl_handler ctrls; member in struct:mt9t001
427 container_of(ctrl->handler, struct mt9t001, ctrls);
737 v4l2_ctrl_handler_init(&mt9t001->ctrls, ARRAY_SIZE(mt9t001_ctrls) +
740 v4l2_ctrl_new_std(&mt9t001->ctrls, &mt9t001_ctrl_ops,
744 v4l2_ctrl_new_std(&mt9t001->ctrls, &mt9t001_ctrl_ops,
748 v4l2_ctrl_new_custom(&mt9t001->ctrls, &mt9t001_ctrls[i], NULL);
751 mt9t001->gains[i] = v4l2_ctrl_new_custom(&mt9t001->ctrls,
756 mt9t001->subdev.ctrl_handler = &mt9t001->ctrls;
758 if (mt9t001->ctrls
[all...]
H A Dmt9v032.c25 #include <media/v4l2-ctrls.h>
125 struct v4l2_ctrl_handler ctrls; member in struct:mt9v032
245 return v4l2_ctrl_handler_setup(&mt9v032->ctrls);
470 container_of(ctrl->handler, struct mt9v032, ctrls);
684 v4l2_ctrl_handler_init(&mt9v032->ctrls, ARRAY_SIZE(mt9v032_ctrls) + 4);
686 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops,
688 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops,
691 v4l2_ctrl_new_std_menu(&mt9v032->ctrls, &mt9v032_ctrl_ops,
694 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops,
700 v4l2_ctrl_new_custom(&mt9v032->ctrls,
[all...]
H A Dmt9p031.c26 #include <media/v4l2-ctrls.h>
107 struct v4l2_ctrl_handler ctrls; member in struct:mt9p031
294 return v4l2_ctrl_handler_setup(&mt9p031->ctrls);
564 container_of(ctrl->handler, struct mt9p031, ctrls);
846 v4l2_ctrl_handler_init(&mt9p031->ctrls, ARRAY_SIZE(mt9p031_ctrls) + 4);
848 v4l2_ctrl_new_std(&mt9p031->ctrls, &mt9p031_ctrl_ops,
852 v4l2_ctrl_new_std(&mt9p031->ctrls, &mt9p031_ctrl_ops,
855 v4l2_ctrl_new_std(&mt9p031->ctrls, &mt9p031_ctrl_ops,
857 v4l2_ctrl_new_std(&mt9p031->ctrls, &mt9p031_ctrl_ops,
861 v4l2_ctrl_new_custom(&mt9p031->ctrls,
[all...]
H A Ds5k6aa.c27 #include <media/v4l2-ctrls.h>
258 struct s5k6aa_ctrls ctrls; member in struct:s5k6aa
306 return &container_of(ctrl->handler, struct s5k6aa, ctrls.handler)->sd;
472 unsigned int vflip = s5k6aa->ctrls.vflip->val ^ s5k6aa->inv_vflip;
482 struct s5k6aa_ctrls *ctrls = &s5k6aa->ctrls; local
488 ret = s5k6aa_write(c, REG_SF_RGAIN, ctrls->gain_red->val);
494 ret = s5k6aa_write(c, REG_SF_GGAIN, ctrls->gain_green->val);
500 ret = s5k6aa_write(c, REG_SF_BGAIN, ctrls->gain_blue->val);
537 unsigned int exp_time = s5k6aa->ctrls
1363 struct s5k6aa_ctrls *ctrls = &s5k6aa->ctrls; local
[all...]
H A Dmt9m032.c35 #include <media/v4l2-ctrls.h>
134 struct v4l2_ctrl_handler ctrls; member in struct:mt9m032
623 container_of(ctrl->handler, struct mt9m032, ctrls);
741 v4l2_ctrl_handler_init(&sensor->ctrls, 4);
743 v4l2_ctrl_new_std(&sensor->ctrls, &mt9m032_ctrl_ops,
746 sensor->hflip = v4l2_ctrl_new_std(&sensor->ctrls,
749 sensor->vflip = v4l2_ctrl_new_std(&sensor->ctrls,
753 v4l2_ctrl_new_std(&sensor->ctrls, &mt9m032_ctrl_ops,
758 if (sensor->ctrls.error) {
759 ret = sensor->ctrls
[all...]
/drivers/media/video/gspca/stv06xx/
H A Dstv06xx_st6422.c44 struct gspca_ctrl ctrls[NCTRLS]; member in struct:st6422_settings
149 sd->gspca_dev.cam.ctrls = sensor_settings->ctrls;
150 sd->desc.ctrls = st6422_ctrl;
254 sensor_settings->ctrls[BRIGHTNESS].val);
263 sensor_settings->ctrls[CONTRAST].val | 0xf0);
272 gain = sensor_settings->ctrls[GAIN].val;
301 expo = sensor_settings->ctrls[EXPOSURE].val;
/drivers/media/video/omap3isp/
H A Disppreview.h32 #include <media/v4l2-ctrls.h>
175 struct v4l2_ctrl_handler ctrls; member in struct:isp_prev_device
/drivers/media/video/tlg2300/
H A Dpd-radio.c269 struct v4l2_ext_controls *ctrls)
274 if (ctrls->ctrl_class != V4L2_CTRL_CLASS_FM_TX)
277 for (i = 0; i < ctrls->count; i++) {
278 struct v4l2_ext_control *ctrl = ctrls->controls + i;
290 struct v4l2_ext_controls *ctrls)
294 if (ctrls->ctrl_class != V4L2_CTRL_CLASS_FM_TX)
297 for (i = 0; i < ctrls->count; i++) {
298 struct v4l2_ext_control *ctrl = ctrls->controls + i;
268 tlg_fm_vidioc_g_exts_ctrl(struct file *file, void *fh, struct v4l2_ext_controls *ctrls) argument
289 tlg_fm_vidioc_s_exts_ctrl(struct file *file, void *fh, struct v4l2_ext_controls *ctrls) argument
/drivers/media/radio/
H A Dradio-isa.h29 #include <media/v4l2-ctrls.h>
/drivers/media/video/hdpvr/
H A Dhdpvr-video.c929 struct v4l2_ext_controls *ctrls)
935 if (ctrls->ctrl_class == V4L2_CTRL_CLASS_MPEG) {
936 for (i = 0; i < ctrls->count; i++) {
937 struct v4l2_ext_control *ctrl = ctrls->controls + i;
941 ctrls->error_idx = i;
1001 struct v4l2_ext_controls *ctrls)
1007 if (ctrls->ctrl_class == V4L2_CTRL_CLASS_MPEG) {
1008 for (i = 0; i < ctrls->count; i++) {
1009 struct v4l2_ext_control *ctrl = ctrls->controls + i;
1014 ctrls
928 vidioc_g_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument
1000 vidioc_try_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument
1098 vidioc_s_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument
[all...]
/drivers/media/video/s5p-jpeg/
H A Djpeg-core.h18 #include <media/v4l2-ctrls.h>
/drivers/media/video/saa7134/
H A Dsaa6752hs.c796 static int saa6752hs_do_ext_ctrls(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls, int set) argument
802 if (ctrls->ctrl_class != V4L2_CTRL_CLASS_MPEG)
806 for (i = 0; i < ctrls->count; i++) {
807 int err = handle_ctrl(h->has_ac3, &params, ctrls->controls + i, set);
810 ctrls->error_idx = i;
819 static int saa6752hs_s_ext_ctrls(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls) argument
821 return saa6752hs_do_ext_ctrls(sd, ctrls, 1);
824 static int saa6752hs_try_ext_ctrls(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls) argument
826 return saa6752hs_do_ext_ctrls(sd, ctrls, 0);
829 static int saa6752hs_g_ext_ctrls(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls) argument
[all...]

Completed in 608 milliseconds

123456