/drivers/media/usb/gspca/ |
D | autogain_functions.c | 31 s32 gain, orig_gain, exposure, orig_exposure; in gspca_expo_autogain() local 38 orig_exposure = exposure = v4l2_ctrl_g_ctrl(gspca_dev->exposure); in gspca_expo_autogain() 51 else if (exposure > exposure_knee) in gspca_expo_autogain() 52 exposure--; in gspca_expo_autogain() 55 else if (exposure > gspca_dev->exposure->minimum) in gspca_expo_autogain() 56 exposure--; in gspca_expo_autogain() 64 else if (exposure < exposure_knee) in gspca_expo_autogain() 65 exposure++; in gspca_expo_autogain() 68 else if (exposure < gspca_dev->exposure->maximum) in gspca_expo_autogain() 69 exposure++; in gspca_expo_autogain() [all …]
|
D | cpia1.c | 287 } exposure; member 527 sd->params.exposure.gain = gspca_dev->usb_buf[0]; in do_command() 528 sd->params.exposure.fineExp = gspca_dev->usb_buf[1]; in do_command() 529 sd->params.exposure.coarseExpLo = gspca_dev->usb_buf[2]; in do_command() 530 sd->params.exposure.coarseExpHi = gspca_dev->usb_buf[3]; in do_command() 531 sd->params.exposure.redComp = gspca_dev->usb_buf[4]; in do_command() 532 sd->params.exposure.green1Comp = gspca_dev->usb_buf[5]; in do_command() 533 sd->params.exposure.green2Comp = gspca_dev->usb_buf[6]; in do_command() 534 sd->params.exposure.blueComp = gspca_dev->usb_buf[7]; in do_command() 633 params->exposure.gainMode = 4; in reset_camera_params() [all …]
|
D | mr97310a.c | 84 struct v4l2_ctrl *exposure; member 820 int exposure = MR97310A_EXPOSURE_DEFAULT; in setexposure() local 826 exposure = (expo * 9267) / 10000 + 300; in setexposure() 827 sensor_write1(gspca_dev, 3, exposure >> 4); in setexposure() 828 sensor_write1(gspca_dev, 4, exposure & 0x0f); in setexposure() 830 exposure = expo; in setexposure() 831 exposure >>= 3; in setexposure() 832 sensor_write1(gspca_dev, 3, exposure >> 8); in setexposure() 833 sensor_write1(gspca_dev, 4, exposure & 0xff); in setexposure() 855 exposure = (60 * 511 * expo) / (8000 * clockdiv); in setexposure() [all …]
|
D | sonixb.c | 696 u16 reg = gspca_dev->exposure->val; in setexposure() 708 u8 reg = gspca_dev->exposure->val; in setexposure() 745 reg11 = (15 * gspca_dev->exposure->val + 999) / 1000; in setexposure() 760 reg10 = (gspca_dev->exposure->val * 15 * reg10_max) in setexposure() 805 if (gspca_dev->exposure->val < 200) { in setexposure() 806 i2cpexpo[3] = 255 - (gspca_dev->exposure->val * 255) in setexposure() 813 framerate_ctrl = (gspca_dev->exposure->val - 200) in setexposure() 835 if (gspca_dev->exposure->val < 150) { in setexposure() 836 i2cpexpo[3] = 150 - gspca_dev->exposure->val; in setexposure() 842 framerate_ctrl = (gspca_dev->exposure->val - 150) in setexposure() [all …]
|
D | pac7302.c | 498 u16 exposure; in setexposure() local 505 clockdiv = (90 * gspca_dev->exposure->val + 1999) / 2000; in setexposure() 530 exposure = (gspca_dev->exposure->val * 45 * 448) / (1000 * clockdiv); in setexposure() 532 exposure = 448 - exposure; in setexposure() 536 reg_w(gspca_dev, 0x0e, exposure & 0xff); in setexposure() 537 reg_w(gspca_dev, 0x0f, exposure >> 8); in setexposure() 593 gspca_dev->exposure->val = PAC7302_EXPOSURE_DEFAULT; in sd_s_ctrl() 618 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl() 671 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
|
D | dtcs033.c | 193 struct v4l2_ctrl *exposure; member 217 sd->exposure->val, ctrl->val); in sd_s_ctrl() 235 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in dtcs033_init_controls() 247 v4l2_ctrl_cluster(2, &sd->exposure); in dtcs033_init_controls()
|
D | sonixj.c | 50 u32 exposure; member 1660 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 1823 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1828 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1832 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1836 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1840 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1844 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1961 rexpo[3] = gspca_dev->exposure->val >> 8; in setexposure() 1965 rexpo[3] = gspca_dev->exposure->val; in setexposure() [all …]
|
D | topro.c | 3994 setexposure(gspca_dev, gspca_dev->exposure->val, in sd_setgain() 3998 setexposure(gspca_dev, gspca_dev->exposure->val, in sd_setgain() 4249 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in cx0342_6800_start() 4254 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in cx0342_6800_start() 4469 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6800_start() 4474 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6800_start() 4508 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() 4513 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() 4545 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() 4550 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() [all …]
|
D | pac207.c | 224 gspca_dev->exposure->val = PAC207_EXPOSURE_DEFAULT; in sd_s_ctrl() 237 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl() 239 gspca_dev->exposure->val); in sd_s_ctrl() 269 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 309 v4l2_ctrl_g_ctrl(gspca_dev->exposure)); /* PXCK = 12MHz /n */ in sd_start()
|
D | pac7311.c | 378 gspca_dev->exposure->val = PAC7311_EXPOSURE_DEFAULT; in sd_s_ctrl() 391 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl() 392 setexposure(gspca_dev, gspca_dev->exposure->val); in sd_s_ctrl() 422 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 451 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure)); in sd_start()
|
D | nw80x.c | 1988 if (gspca_dev->exposure->is_new) in sd_s_ctrl() 1990 gspca_dev->exposure->val); in sd_s_ctrl() 1996 setexposure(gspca_dev, gspca_dev->exposure->val); in sd_s_ctrl() 2021 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 2033 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
|
D | ov534.c | 72 struct v4l2_ctrl *exposure; member 1085 if (ctrl->val == V4L2_EXPOSURE_AUTO && sd->exposure && in ov534_g_volatile_ctrl() 1087 sd->exposure->val = getexposure(gspca_dev); in ov534_g_volatile_ctrl() 1128 sd->exposure) in ov534_s_ctrl() 1129 setexposure(gspca_dev, sd->exposure->val); in ov534_s_ctrl() 1226 sd->exposure = v4l2_ctrl_new_std(hdl, &ov534_ctrl_ops, in sd_init_controls() 1365 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(sd->exposure)); in sd_start()
|
D | ov534_9.c | 1315 static void setexposure(struct gspca_dev *gspca_dev, s32 exposure) in setexposure() argument 1320 sccb_write(gspca_dev, 0x10, expo[exposure]); /* aec[9:2] */ in setexposure() 1737 if (!ctrl->val && gspca_dev->exposure->is_new) in sd_s_ctrl() 1738 setexposure(gspca_dev, gspca_dev->exposure->val); in sd_s_ctrl() 1774 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
|
D | sn9c20x.c | 84 struct v4l2_ctrl *exposure; member 1706 set_exposure(gspca_dev, sd->exposure->val); in sd_s_ctrl() 1756 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 2046 if (sd->exposure) in sd_start() 2047 set_exposure(gspca_dev, v4l2_ctrl_g_ctrl(sd->exposure)); in sd_start() 2084 s32 cur_exp = v4l2_ctrl_g_ctrl(sd->exposure); in do_autoexposure() 2085 s32 max = sd->exposure->maximum - sd->exposure_step; in do_autoexposure() 2086 s32 min = sd->exposure->minimum + sd->exposure_step; in do_autoexposure() 2103 v4l2_ctrl_s_ctrl(sd->exposure, new_exp); in do_autoexposure() 2121 v4l2_ctrl_s_ctrl(sd->exposure, new_exp); in do_autoexposure()
|
/drivers/staging/media/atomisp/i2c/ |
D | ov8858.c | 344 static int __ov8858_set_exposure(struct v4l2_subdev *sd, int exposure, int gain, in __ov8858_set_exposure() argument 351 __func__, exposure, gain, dig_gain); in __ov8858_set_exposure() 354 if (exposure > *vts - OV8858_INTEGRATION_TIME_MARGIN) in __ov8858_set_exposure() 355 exposure = *vts - OV8858_INTEGRATION_TIME_MARGIN; in __ov8858_set_exposure() 357 if (*vts < exposure + OV8858_INTEGRATION_TIME_MARGIN) in __ov8858_set_exposure() 358 *vts = (u16) exposure + OV8858_INTEGRATION_TIME_MARGIN; in __ov8858_set_exposure() 366 exp_val = exposure << 4; in __ov8858_set_exposure() 406 dev->exposure = exposure; in __ov8858_set_exposure() 412 static int ov8858_set_exposure(struct v4l2_subdev *sd, int exposure, int gain, in ov8858_set_exposure() argument 423 exposure = clamp_t(int, exposure, 0, OV8858_MAX_EXPOSURE_VALUE); in ov8858_set_exposure() [all …]
|
D | mt9m114.c | 1002 struct atomisp_exposure *exposure) in mt9m114_s_exposure() argument 1016 exposure->integration_time[0], exposure->gain[0], in mt9m114_s_exposure() 1017 exposure->gain[1]); in mt9m114_s_exposure() 1019 coarse_integration = exposure->integration_time[0]; in mt9m114_s_exposure() 1023 AnalogGain = exposure->gain[0]; in mt9m114_s_exposure() 1024 DigitalGain = exposure->gain[1]; in mt9m114_s_exposure() 1729 struct atomisp_exposure exposure; in mt9m114_s_stream() local 1738 exposure.integration_time[0] = dev->first_exp; in mt9m114_s_stream() 1739 exposure.gain[0] = dev->first_gain; in mt9m114_s_stream() 1740 exposure.gain[1] = dev->first_diggain; in mt9m114_s_stream() [all …]
|
/drivers/media/i2c/ |
D | mt9v011.c | 62 u16 global_gain, exposure; member 180 u16 exposure; in set_balance() local 183 exposure = core->exposure; in set_balance() 199 mt9v011_write(sd, R09_MT9V011_SHUTTER_WIDTH, exposure); in set_balance() 436 core->exposure = ctrl->val; in mt9v011_s_ctrl() 557 core->exposure = 0x01fc; in mt9v011_probe()
|
D | ov9650.c | 206 struct v4l2_ctrl *exposure; member 568 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl() 789 if (!auto_exposure && ctrls->exposure->is_new) { in ov965x_set_exposure() 790 unsigned int exposure = (ctrls->exposure->val * 100) in ov965x_set_exposure() local 796 ret = ov965x_write(client, REG_COM1, exposure & 0x3); in ov965x_set_exposure() 799 (exposure >> 2) & 0xff); in ov965x_set_exposure() 802 (exposure >> 10) & 0x3f); in ov965x_set_exposure() 804 ctrls->exposure->val = ((exposure * ov965x->exp_row_interval) in ov965x_set_exposure() 868 unsigned int exposure, gain, m; in __g_volatile_ctrl() local 900 exposure = ((reg2 & 0x3f) << 10) | (reg1 << 2) | in __g_volatile_ctrl() [all …]
|
D | ov5640.c | 154 struct v4l2_ctrl *exposure; member 952 static int ov5640_set_exposure(struct ov5640_dev *sensor, u32 exposure) in ov5640_set_exposure() argument 956 exposure <<= 4; in ov5640_set_exposure() 960 exposure & 0xff); in ov5640_set_exposure() 965 (exposure >> 8) & 0xff); in ov5640_set_exposure() 970 (exposure >> 16) & 0x0f); in ov5640_set_exposure() 1430 return __v4l2_ctrl_s_ctrl(sensor->ctrls.exposure, cap_shutter); in ov5640_set_mode_exposure_calc() 1846 if (!auto_exposure && ctrls->exposure->is_new) { in ov5640_set_ctrl_exposure() 1858 if (ctrls->exposure->val < max_exp) in ov5640_set_ctrl_exposure() 1859 ret = ov5640_set_exposure(sensor, ctrls->exposure->val); in ov5640_set_ctrl_exposure() [all …]
|
D | ov5670.c | 1817 struct v4l2_ctrl *exposure; member 2004 __v4l2_ctrl_modify_range(ov5670->exposure, in ov5670_set_ctrl() 2005 ov5670->exposure->minimum, max, in ov5670_set_ctrl() 2006 ov5670->exposure->step, max); in ov5670_set_ctrl() 2108 ov5670->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &ov5670_ctrl_ops, in ov5670_init_controls()
|
/drivers/media/i2c/m5mols/ |
D | m5mols_controls.c | 241 static int m5mols_set_exposure(struct m5mols_info *info, int exposure) in m5mols_set_exposure() argument 246 if (exposure == V4L2_EXPOSURE_AUTO) { in m5mols_set_exposure() 263 if (exposure == V4L2_EXPOSURE_MANUAL) { in m5mols_set_exposure() 267 info->exposure->val); in m5mols_set_exposure() 270 info->exposure->val); in m5mols_set_exposure() 273 __func__, info->exposure->val); in m5mols_set_exposure() 564 info->exposure = v4l2_ctrl_new_std(&info->handle, in m5mols_init_controls()
|
/drivers/media/usb/pwc/ |
D | pwc-v4l.c | 271 pdev->exposure = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 283 pdev->exposure = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 288 pdev->autogain_expo_cluster[2] = pdev->exposure; in pwc_init_controls() 576 pdev->exposure->val = pdev->last_exposure; in pwc_g_volatile_ctrl() 581 &pdev->exposure->val); in pwc_g_volatile_ctrl() 584 pdev->last_exposure = pdev->exposure->val; in pwc_g_volatile_ctrl() 691 if (pdev->exposure->is_new) { in pwc_set_exposure_auto() 694 pdev->exposure->val); in pwc_set_exposure_auto() 730 if (pdev->exposure->is_new) { in pwc_set_autogain_expo() 733 pdev->exposure->val); in pwc_set_autogain_expo()
|
/drivers/media/i2c/soc_camera/ |
D | mt9m001.c | 94 struct v4l2_ctrl *exposure; member 393 min = mt9m001->exposure->minimum; in mt9m001_g_volatile_ctrl() 394 max = mt9m001->exposure->maximum; in mt9m001_g_volatile_ctrl() 395 mt9m001->exposure->val = in mt9m001_g_volatile_ctrl() 408 struct v4l2_ctrl *exp = mt9m001->exposure; in mt9m001_s_ctrl() 687 mt9m001->exposure = v4l2_ctrl_new_std(&mt9m001->hdl, &mt9m001_ctrl_ops, in mt9m001_probe()
|
D | mt9t031.c | 76 struct v4l2_ctrl *exposure; member 451 min = mt9t031->exposure->minimum; in mt9t031_g_volatile_ctrl() 452 max = mt9t031->exposure->maximum; in mt9t031_g_volatile_ctrl() 453 mt9t031->exposure->val = in mt9t031_g_volatile_ctrl() 467 struct v4l2_ctrl *exp = mt9t031->exposure; in mt9t031_s_ctrl() 793 mt9t031->exposure = v4l2_ctrl_new_std(&mt9t031->hdl, &mt9t031_ctrl_ops, in mt9t031_probe()
|
/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_pb0100.c | 51 struct v4l2_ctrl *exposure; member 102 err = pb0100_set_exposure(gspca_dev, ctrls->exposure->val); in pb0100_s_ctrl() 145 ctrls->exposure = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
|