/linux-6.1.9/drivers/media/usb/gspca/ |
D | autogain_functions.c | 22 s32 gain, orig_gain, exposure, orig_exposure; in gspca_expo_autogain() local 29 orig_exposure = exposure = v4l2_ctrl_g_ctrl(gspca_dev->exposure); in gspca_expo_autogain() 42 else if (exposure > exposure_knee) in gspca_expo_autogain() 43 exposure--; in gspca_expo_autogain() 46 else if (exposure > gspca_dev->exposure->minimum) in gspca_expo_autogain() 47 exposure--; in gspca_expo_autogain() 55 else if (exposure < exposure_knee) in gspca_expo_autogain() 56 exposure++; in gspca_expo_autogain() 59 else if (exposure < gspca_dev->exposure->maximum) in gspca_expo_autogain() 60 exposure++; in gspca_expo_autogain() [all …]
|
D | cpia1.c | 277 } exposure; member 519 sd->params.exposure.gain = gspca_dev->usb_buf[0]; in do_command() 520 sd->params.exposure.fineExp = gspca_dev->usb_buf[1]; in do_command() 521 sd->params.exposure.coarseExpLo = gspca_dev->usb_buf[2]; in do_command() 522 sd->params.exposure.coarseExpHi = gspca_dev->usb_buf[3]; in do_command() 523 sd->params.exposure.redComp = gspca_dev->usb_buf[4]; in do_command() 524 sd->params.exposure.green1Comp = gspca_dev->usb_buf[5]; in do_command() 525 sd->params.exposure.green2Comp = gspca_dev->usb_buf[6]; in do_command() 526 sd->params.exposure.blueComp = gspca_dev->usb_buf[7]; in do_command() 629 params->exposure.gainMode = 4; in reset_camera_params() [all …]
|
D | mr97310a.c | 75 struct v4l2_ctrl *exposure; member 811 int exposure = MR97310A_EXPOSURE_DEFAULT; in setexposure() local 817 exposure = (expo * 9267) / 10000 + 300; in setexposure() 818 sensor_write1(gspca_dev, 3, exposure >> 4); in setexposure() 819 sensor_write1(gspca_dev, 4, exposure & 0x0f); in setexposure() 821 exposure = expo; in setexposure() 822 exposure >>= 3; in setexposure() 823 sensor_write1(gspca_dev, 3, exposure >> 8); in setexposure() 824 sensor_write1(gspca_dev, 4, exposure & 0xff); in setexposure() 846 exposure = (60 * 511 * expo) / (8000 * clockdiv); in setexposure() [all …]
|
D | sonixb.c | 687 u16 reg = gspca_dev->exposure->val; in setexposure() 699 u8 reg = gspca_dev->exposure->val; in setexposure() 736 reg11 = (15 * gspca_dev->exposure->val + 999) / 1000; in setexposure() 751 reg10 = (gspca_dev->exposure->val * 15 * reg10_max) in setexposure() 796 if (gspca_dev->exposure->val < 200) { in setexposure() 797 i2cpexpo[3] = 255 - (gspca_dev->exposure->val * 255) in setexposure() 804 framerate_ctrl = (gspca_dev->exposure->val - 200) in setexposure() 826 if (gspca_dev->exposure->val < 150) { in setexposure() 827 i2cpexpo[3] = 150 - gspca_dev->exposure->val; in setexposure() 833 framerate_ctrl = (gspca_dev->exposure->val - 150) in setexposure() [all …]
|
D | pac7302.c | 489 u16 exposure; in setexposure() local 496 clockdiv = (90 * gspca_dev->exposure->val + 1999) / 2000; in setexposure() 521 exposure = (gspca_dev->exposure->val * 45 * 448) / (1000 * clockdiv); in setexposure() 523 exposure = 448 - exposure; in setexposure() 527 reg_w(gspca_dev, 0x0e, exposure & 0xff); in setexposure() 528 reg_w(gspca_dev, 0x0f, exposure >> 8); in setexposure() 584 gspca_dev->exposure->val = PAC7302_EXPOSURE_DEFAULT; in sd_s_ctrl() 609 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl() 662 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
|
D | dtcs033.c | 182 struct v4l2_ctrl *exposure; member 206 sd->exposure->val, ctrl->val); in sd_s_ctrl() 224 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in dtcs033_init_controls() 236 v4l2_ctrl_cluster(2, &sd->exposure); in dtcs033_init_controls()
|
D | sonixj.c | 41 u32 exposure; member 1653 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 1816 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1821 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1825 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1829 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1833 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1837 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness() 1954 rexpo[3] = gspca_dev->exposure->val >> 8; in setexposure() 1958 rexpo[3] = gspca_dev->exposure->val; in setexposure() [all …]
|
D | topro.c | 3982 setexposure(gspca_dev, gspca_dev->exposure->val, in sd_setgain() 3986 setexposure(gspca_dev, gspca_dev->exposure->val, in sd_setgain() 4237 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in cx0342_6800_start() 4242 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in cx0342_6800_start() 4457 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6800_start() 4462 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6800_start() 4496 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() 4501 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() 4533 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() 4538 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start() [all …]
|
D | pac207.c | 214 gspca_dev->exposure->val = PAC207_EXPOSURE_DEFAULT; in sd_s_ctrl() 227 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl() 229 gspca_dev->exposure->val); in sd_s_ctrl() 259 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 299 v4l2_ctrl_g_ctrl(gspca_dev->exposure)); /* PXCK = 12MHz /n */ in sd_start()
|
D | pac7311.c | 369 gspca_dev->exposure->val = PAC7311_EXPOSURE_DEFAULT; in sd_s_ctrl() 382 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl() 383 setexposure(gspca_dev, gspca_dev->exposure->val); in sd_s_ctrl() 413 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls() 442 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure)); in sd_start()
|
/linux-6.1.9/Documentation/userspace-api/media/v4l/ |
D | ext-ctrls-camera.rst | 23 .. _v4l2-exposure-auto-type: 29 Enables automatic adjustments of the exposure time and/or iris 30 aperture. The effect of manual changes of the exposure time or iris 42 - Automatic exposure time, automatic iris aperture. 44 - Manual exposure time, manual iris. 46 - Manual exposure time, auto iris. 48 - Auto exposure time, manual iris. 53 Determines the exposure time of the camera sensor. The exposure time 65 Determines the automatic exposure compensation, it is effective only 71 Increasing the exposure compensation value is equivalent to [all …]
|
/linux-6.1.9/drivers/media/i2c/ |
D | ov5693.c | 180 struct v4l2_ctrl *exposure; member 518 u32 exposure; in ov5693_get_exposure() local 521 ret = ov5693_read_reg(ov5693, OV5693_EXPOSURE_CTRL_REG, &exposure); in ov5693_get_exposure() 526 *value = exposure >> 4; in ov5693_get_exposure() 532 u32 exposure) in ov5693_exposure_configure() argument 536 exposure = (exposure << 4) & OV5693_EXPOSURE_CTRL_MASK; in ov5693_exposure_configure() 538 ov5693_write_reg(ov5693, OV5693_EXPOSURE_CTRL_REG, exposure, &ret); in ov5693_exposure_configure() 615 __v4l2_ctrl_modify_range(ov5693->ctrls.exposure, in ov5693_s_ctrl() 616 ov5693->ctrls.exposure->minimum, in ov5693_s_ctrl() 618 ov5693->ctrls.exposure->step, in ov5693_s_ctrl() [all …]
|
D | mt9v011.c | 61 u16 global_gain, exposure; member 179 u16 exposure; in set_balance() local 182 exposure = core->exposure; in set_balance() 198 mt9v011_write(sd, R09_MT9V011_SHUTTER_WIDTH, exposure); in set_balance() 424 core->exposure = ctrl->val; in mt9v011_s_ctrl() 545 core->exposure = 0x01fc; in mt9v011_probe()
|
D | ov9650.c | 206 struct v4l2_ctrl *exposure; member 562 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl() 781 if (!auto_exposure && ctrls->exposure->is_new) { in ov965x_set_exposure() 782 unsigned int exposure = (ctrls->exposure->val * 100) in ov965x_set_exposure() local 788 ret = ov965x_write(ov965x, REG_COM1, exposure & 0x3); in ov965x_set_exposure() 791 (exposure >> 2) & 0xff); in ov965x_set_exposure() 794 (exposure >> 10) & 0x3f); in ov965x_set_exposure() 796 ctrls->exposure->val = ((exposure * ov965x->exp_row_interval) in ov965x_set_exposure() 859 unsigned int exposure, gain, m; in __g_volatile_ctrl() local 893 exposure = ((reg2 & 0x3f) << 10) | (reg1 << 2) | in __g_volatile_ctrl() [all …]
|
D | ov7251.c | 147 struct v4l2_ctrl *exposure; member 865 static int ov7251_set_exposure(struct ov7251 *ov7251, s32 exposure) in ov7251_set_exposure() argument 871 val[0] = (exposure & 0xf000) >> 12; /* goes to OV7251_AEC_EXPO_0 */ in ov7251_set_exposure() 872 val[1] = (exposure & 0x0ff0) >> 4; /* goes to OV7251_AEC_EXPO_1 */ in ov7251_set_exposure() 873 val[2] = (exposure & 0x000f) << 4; /* goes to OV7251_AEC_EXPO_2 */ in ov7251_set_exposure() 1037 __v4l2_ctrl_modify_range(ov7251->exposure, in ov7251_s_ctrl() 1038 ov7251->exposure->minimum, in ov7251_s_ctrl() 1040 ov7251->exposure->step, in ov7251_s_ctrl() 1041 min(ov7251->exposure->val, in ov7251_s_ctrl() 1239 ret = __v4l2_ctrl_modify_range(ov7251->exposure, in ov7251_set_format() [all …]
|
D | ov08d10.c | 531 struct v4l2_ctrl *exposure; member 727 static int ov08d10_set_exposure(struct ov08d10 *ov08d10, u32 exposure) in ov08d10_set_exposure() argument 744 exposure = exposure * exp_cal / (cur_vts - OV08D10_EXPOSURE_MAX_MARGIN); in ov08d10_set_exposure() 751 val = ((exposure >> 16) & 0xFF); in ov08d10_set_exposure() 756 val = ((exposure >> 8) & 0xFF); in ov08d10_set_exposure() 761 val = exposure & 0xFF; in ov08d10_set_exposure() 864 __v4l2_ctrl_modify_range(ov08d10->exposure, in ov08d10_set_ctrl() 865 ov08d10->exposure->minimum, in ov08d10_set_ctrl() 866 exposure_max, ov08d10->exposure->step, in ov08d10_set_ctrl() 979 ov08d10->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, in ov08d10_init_controls()
|
D | imx335.c | 393 static int imx335_update_exp_gain(struct imx335 *imx335, u32 exposure, u32 gain) in imx335_update_exp_gain() argument 399 shutter = lpfr - exposure; in imx335_update_exp_gain() 402 exposure, gain, shutter, lpfr); in imx335_update_exp_gain() 441 u32 exposure; in imx335_set_ctrl() local 464 exposure = ctrl->val; in imx335_set_ctrl() 468 exposure, analog_gain); in imx335_set_ctrl() 470 ret = imx335_update_exp_gain(imx335, exposure, analog_gain); in imx335_set_ctrl()
|
D | imx412.c | 545 static int imx412_update_exp_gain(struct imx412 *imx412, u32 exposure, u32 gain) in imx412_update_exp_gain() argument 551 shutter = lpfr - exposure; in imx412_update_exp_gain() 554 exposure, gain, shutter, lpfr); in imx412_update_exp_gain() 593 u32 exposure; in imx412_set_ctrl() local 616 exposure = ctrl->val; in imx412_set_ctrl() 620 exposure, analog_gain); in imx412_set_ctrl() 622 ret = imx412_update_exp_gain(imx412, exposure, analog_gain); in imx412_set_ctrl()
|
D | imx334.c | 401 static int imx334_update_exp_gain(struct imx334 *imx334, u32 exposure, u32 gain) in imx334_update_exp_gain() argument 407 shutter = lpfr - exposure; in imx334_update_exp_gain() 410 exposure, gain, shutter, lpfr); in imx334_update_exp_gain() 449 u32 exposure; in imx334_set_ctrl() local 473 exposure = ctrl->val; in imx334_set_ctrl() 477 exposure, analog_gain); in imx334_set_ctrl() 479 ret = imx334_update_exp_gain(imx334, exposure, analog_gain); in imx334_set_ctrl()
|
D | ov9282.c | 404 static int ov9282_update_exp_gain(struct ov9282 *ov9282, u32 exposure, u32 gain) in ov9282_update_exp_gain() argument 412 exposure, gain, lpfr); in ov9282_update_exp_gain() 422 ret = ov9282_write_reg(ov9282, OV9282_REG_EXPOSURE, 3, exposure << 4); in ov9282_update_exp_gain() 451 u32 exposure; in ov9282_set_ctrl() local 474 exposure = ctrl->val; in ov9282_set_ctrl() 478 exposure, analog_gain); in ov9282_set_ctrl() 480 ret = ov9282_update_exp_gain(ov9282, exposure, analog_gain); in ov9282_set_ctrl()
|
D | ov2685.c | 94 struct v4l2_ctrl *exposure; member 542 __v4l2_ctrl_modify_range(ov2685->exposure, in ov2685_set_ctrl() 543 ov2685->exposure->minimum, max_expo, in ov2685_set_ctrl() 544 ov2685->exposure->step, in ov2685_set_ctrl() 545 ov2685->exposure->default_value); in ov2685_set_ctrl() 647 ov2685->exposure = v4l2_ctrl_new_std(handler, &ov2685_ctrl_ops, in ov2685_initialize_controls()
|
D | ov5647.c | 110 struct v4l2_ctrl *exposure; member 1013 __v4l2_ctrl_modify_range(sensor->exposure, in ov5647_set_pad_fmt() 1014 sensor->exposure->minimum, in ov5647_set_pad_fmt() 1015 exposure_max, sensor->exposure->step, in ov5647_set_pad_fmt() 1211 __v4l2_ctrl_modify_range(sensor->exposure, in ov5647_s_ctrl() 1212 sensor->exposure->minimum, in ov5647_s_ctrl() 1213 exposure_max, sensor->exposure->step, in ov5647_s_ctrl() 1287 sensor->exposure = v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops, in ov5647_init_controls()
|
/linux-6.1.9/drivers/staging/media/atomisp/i2c/ |
D | atomisp-ov2680.c | 355 static int ov2680_set_exposure(struct v4l2_subdev *sd, int exposure, in ov2680_set_exposure() argument 363 dev->exposure = exposure; in ov2680_set_exposure() 368 ret = __ov2680_set_exposure(sd, exposure, gain, digitgain); in ov2680_set_exposure() 376 struct atomisp_exposure *exposure) in ov2680_s_exposure() argument 378 u16 coarse_itg = exposure->integration_time[0]; in ov2680_s_exposure() 379 u16 analog_gain = exposure->gain[0]; in ov2680_s_exposure() 380 u16 digital_gain = exposure->gain[1]; in ov2680_s_exposure() 742 ret = __ov2680_set_exposure(sd, dev->exposure, dev->gain, dev->digitgain); in power_up() 876 if (dev->exposure > vts - OV2680_INTEGRATION_TIME_MARGIN) in ov2680_set_fmt() 877 vts = dev->exposure + OV2680_INTEGRATION_TIME_MARGIN; in ov2680_set_fmt() [all …]
|
/linux-6.1.9/drivers/media/i2c/m5mols/ |
D | m5mols_controls.c | 238 static int m5mols_set_exposure(struct m5mols_info *info, int exposure) in m5mols_set_exposure() argument 243 if (exposure == V4L2_EXPOSURE_AUTO) { in m5mols_set_exposure() 260 if (exposure == V4L2_EXPOSURE_MANUAL) { in m5mols_set_exposure() 264 info->exposure->val); in m5mols_set_exposure() 267 info->exposure->val); in m5mols_set_exposure() 270 __func__, info->exposure->val); in m5mols_set_exposure() 561 info->exposure = v4l2_ctrl_new_std(&info->handle, in m5mols_init_controls()
|
/linux-6.1.9/drivers/media/usb/pwc/ |
D | pwc-v4l.c | 259 pdev->exposure = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 271 pdev->exposure = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 276 pdev->autogain_expo_cluster[2] = pdev->exposure; in pwc_init_controls() 561 pdev->exposure->val = pdev->last_exposure; in pwc_g_volatile_ctrl() 566 &pdev->exposure->val); in pwc_g_volatile_ctrl() 569 pdev->last_exposure = pdev->exposure->val; in pwc_g_volatile_ctrl() 676 if (pdev->exposure->is_new) { in pwc_set_exposure_auto() 679 pdev->exposure->val); in pwc_set_exposure_auto() 715 if (pdev->exposure->is_new) { in pwc_set_autogain_expo() 718 pdev->exposure->val); in pwc_set_autogain_expo()
|