/drivers/media/video/gspca/stv06xx/ |
H A D | stv06xx_st6422.c | 44 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/gspca/ |
H A D | mars.c | 48 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 D | stk014.c | 45 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 D | vicam.c | 54 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 D | jeilinj.c | 69 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 D | nw80x.c | 49 struct gspca_ctrl ctrls[NCTRLS]; member in struct:sd 1675 val = sd->ctrls[GAIN].val; 1699 val = sd->ctrls[EXPOSURE].val; 1723 if (!sd->ctrls[AUTOGAIN].val) { 1766 gspca_dev->cam.ctrls = sd->ctrls; 1839 /* sd->ctrls[EXPOSURE].max = 9; 1840 * sd->ctrls[EXPOSURE].def = 9; */ 1843 sd->ctrls[GAIN].def = 255 / 5 * 2; 1851 sd->ctrls[EXPOSUR [all...] |
H A D | pac7302.c | 96 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 D | se401.c | 67 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,
|
H A D | gspca.h | 59 struct gspca_ctrl *ctrls; /* control table - size nctrls */ member in struct:cam 113 const struct ctrl *ctrls; /* static control definition */ member in struct:sd_desc
|
H A D | ov534.c | 75 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 D | ov534_9.c | 65 struct gspca_ctrl ctrls[NCTRLS]; member in struct:sd 1115 sval = sd->ctrls[BRIGHTNESS].val; 1130 val = sd->ctrls[BRIGHTNESS].val; 1147 sd->ctrls[CONTRAST].val << 4); 1160 if (sd->ctrls[AUTOGAIN].val) 1176 expo[sd->ctrls[EXPOSURE].val]); 1194 val = sd->ctrls[SHARPNESS].val; 1225 val1 = matrix[sd->ctrls[SATUR].val][0]; 1226 val2 = matrix[sd->ctrls[SATUR].val][1]; 1250 if (sd->ctrls[LIGHTFRE [all...] |
H A D | sonixb.c | 73 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...] |
/drivers/media/video/tlg2300/ |
H A D | pd-radio.c | 269 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/video/omap3isp/ |
H A D | isppreview.h | 32 #include <media/v4l2-ctrls.h> 175 struct v4l2_ctrl_handler ctrls; member in struct:isp_prev_device
|
/drivers/media/video/saa7134/ |
H A D | saa7134-empress.c | 310 struct v4l2_ext_controls *ctrls) 317 if (ctrls->count == 0) 320 if (ctrls->ctrl_class != V4L2_CTRL_CLASS_MPEG) 323 err = saa_call_empress(dev, core, s_ext_ctrls, ctrls); 330 struct v4l2_ext_controls *ctrls) 334 if (ctrls->ctrl_class != V4L2_CTRL_CLASS_MPEG) 336 return saa_call_empress(dev, core, g_ext_ctrls, ctrls); 309 empress_s_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument 329 empress_g_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument
|
H A D | saa6752hs.c | 796 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, ¶ms, 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...] |
/drivers/media/video/ |
H A D | v4l2-ioctl.c | 25 #include <media/v4l2-ctrls.h> 1283 struct v4l2_ext_controls ctrls; local 1286 ctrls.ctrl_class = V4L2_CTRL_ID2CLASS(p->id); 1287 ctrls.count = 1; 1288 ctrls.controls = &ctrl; 1291 if (check_ext_ctrls(&ctrls, 1)) { 1292 ret = ops->vidioc_g_ext_ctrls(file, fh, &ctrls); 1307 struct v4l2_ext_controls ctrls; local 1335 ctrls.ctrl_class = V4L2_CTRL_ID2CLASS(p->id); 1336 ctrls 2372 struct v4l2_ext_controls *ctrls = parg; local [all...] |
H A D | as3645a.c | 35 #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 D | cx2341x.c | 935 struct v4l2_ext_controls *ctrls, unsigned int cmd) 941 for (i = 0; i < ctrls->count; i++) { 942 struct v4l2_ext_control *ctrl = ctrls->controls + i; 946 ctrls->error_idx = i; 952 for (i = 0; i < ctrls->count; i++) { 953 struct v4l2_ext_control *ctrl = ctrls->controls + i; 974 ctrls->error_idx = ctrls->count; 977 ctrls->error_idx = i; 934 cx2341x_ext_ctrls(struct cx2341x_mpeg_params *params, int busy, struct v4l2_ext_controls *ctrls, unsigned int cmd) argument
|
H A D | mt9m032.c | 35 #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...] |
H A D | mt9p031.c | 26 #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...] |
/drivers/media/video/hdpvr/ |
H A D | hdpvr-video.c | 929 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/saa7164/ |
H A D | saa7164-encoder.c | 525 struct v4l2_ext_controls *ctrls) 531 if (ctrls->ctrl_class == V4L2_CTRL_CLASS_MPEG) { 532 for (i = 0; i < ctrls->count; i++) { 533 struct v4l2_ext_control *ctrl = ctrls->controls + i; 537 ctrls->error_idx = i; 601 struct v4l2_ext_controls *ctrls) 605 if (ctrls->ctrl_class == V4L2_CTRL_CLASS_MPEG) { 606 for (i = 0; i < ctrls->count; i++) { 607 struct v4l2_ext_control *ctrl = ctrls->controls + i; 611 ctrls 524 vidioc_g_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument 600 vidioc_try_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument 673 vidioc_s_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument [all...] |
H A D | saa7164-vbi.c | 488 struct v4l2_ext_controls *ctrls) 494 if (ctrls->ctrl_class == V4L2_CTRL_CLASS_MPEG) { 495 for (i = 0; i < ctrls->count; i++) { 496 struct v4l2_ext_control *ctrl = ctrls->controls + i; 500 ctrls->error_idx = i; 549 struct v4l2_ext_controls *ctrls) 553 if (ctrls->ctrl_class == V4L2_CTRL_CLASS_MPEG) { 554 for (i = 0; i < ctrls->count; i++) { 555 struct v4l2_ext_control *ctrl = ctrls->controls + i; 559 ctrls 487 vidioc_g_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument 548 vidioc_try_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument 612 vidioc_s_ext_ctrls(struct file *file, void *priv, struct v4l2_ext_controls *ctrls) argument [all...] |
/drivers/media/video/uvc/ |
H A D | uvc_v4l2.c | 622 struct v4l2_ext_controls *ctrls = arg; local 623 struct v4l2_ext_control *ctrl = ctrls->controls; 630 for (i = 0; i < ctrls->count; ++ctrl, ++i) { 634 ctrls->error_idx = i; 638 ctrls->error_idx = 0; 646 struct v4l2_ext_controls *ctrls = arg; local 647 struct v4l2_ext_control *ctrl = ctrls->controls; 654 for (i = 0; i < ctrls->count; ++ctrl, ++i) { 658 ctrls->error_idx = i; 663 ctrls [all...] |