/linux-6.6.21/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 | 278 } exposure; member 520 sd->params.exposure.gain = gspca_dev->usb_buf[0]; in do_command() 521 sd->params.exposure.fineExp = gspca_dev->usb_buf[1]; in do_command() 522 sd->params.exposure.coarseExpLo = gspca_dev->usb_buf[2]; in do_command() 523 sd->params.exposure.coarseExpHi = gspca_dev->usb_buf[3]; in do_command() 524 sd->params.exposure.redComp = gspca_dev->usb_buf[4]; in do_command() 525 sd->params.exposure.green1Comp = gspca_dev->usb_buf[5]; in do_command() 526 sd->params.exposure.green2Comp = gspca_dev->usb_buf[6]; in do_command() 527 sd->params.exposure.blueComp = gspca_dev->usb_buf[7]; in do_command() 630 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.6.21/Documentation/userspace-api/media/drivers/ |
D | st-vgxy61.rst | 11 captures of the same scene using two different exposure periods. 19 - The merger outputs a long exposure capture as long as it is not 22 - This involves subtracting the short exposure frame from the long 23 exposure frame.
|
/linux-6.6.21/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.6.21/drivers/media/i2c/ |
D | ov5693.c | 166 struct v4l2_ctrl *exposure; member 390 u64 exposure; in ov5693_get_exposure() local 393 ret = cci_read(ov5693->regmap, OV5693_EXPOSURE_CTRL_REG, &exposure, in ov5693_get_exposure() 399 *value = exposure >> 4; in ov5693_get_exposure() 405 u32 exposure) in ov5693_exposure_configure() argument 409 exposure = (exposure << 4) & OV5693_EXPOSURE_CTRL_MASK; in ov5693_exposure_configure() 411 cci_write(ov5693->regmap, OV5693_EXPOSURE_CTRL_REG, exposure, &ret); in ov5693_exposure_configure() 488 __v4l2_ctrl_modify_range(ov5693->ctrls.exposure, in ov5693_s_ctrl() 489 ov5693->ctrls.exposure->minimum, in ov5693_s_ctrl() 491 ov5693->ctrls.exposure->step, in ov5693_s_ctrl() [all …]
|
D | ov9650.c | 204 struct v4l2_ctrl *exposure; member 560 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl() 779 if (!auto_exposure && ctrls->exposure->is_new) { in ov965x_set_exposure() 780 unsigned int exposure = (ctrls->exposure->val * 100) in ov965x_set_exposure() local 786 ret = ov965x_write(ov965x, REG_COM1, exposure & 0x3); in ov965x_set_exposure() 789 (exposure >> 2) & 0xff); in ov965x_set_exposure() 792 (exposure >> 10) & 0x3f); in ov965x_set_exposure() 794 ctrls->exposure->val = ((exposure * ov965x->exp_row_interval) in ov965x_set_exposure() 857 unsigned int exposure, gain, m; in __g_volatile_ctrl() local 891 exposure = ((reg2 & 0x3f) << 10) | (reg1 << 2) | in __g_volatile_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() 544 core->exposure = 0x01fc; in mt9v011_probe()
|
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 | ar0521.c | 109 struct v4l2_ctrl *exposure; member 519 ret = __v4l2_ctrl_modify_range(sensor->ctrls.exposure, in ar0521_set_fmt() 520 sensor->ctrls.exposure->minimum, in ar0521_set_fmt() 522 sensor->ctrls.exposure->step, in ar0521_set_fmt() 523 sensor->ctrls.exposure->default_value); in ar0521_set_fmt() 542 __v4l2_ctrl_modify_range(sensor->ctrls.exposure, in ar0521_s_ctrl() 543 sensor->ctrls.exposure->minimum, in ar0521_s_ctrl() 544 exp_max, sensor->ctrls.exposure->step, in ar0521_s_ctrl() 545 sensor->ctrls.exposure->default_value); in ar0521_s_ctrl() 647 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, 0, in ar0521_init_controls()
|
D | imx334.c | 631 static int imx334_update_exp_gain(struct imx334 *imx334, u32 exposure, u32 gain) in imx334_update_exp_gain() argument 637 shutter = lpfr - exposure; in imx334_update_exp_gain() 640 exposure, gain, shutter, lpfr); in imx334_update_exp_gain() 679 u32 exposure; in imx334_set_ctrl() local 703 exposure = ctrl->val; in imx334_set_ctrl() 707 exposure, analog_gain); in imx334_set_ctrl() 709 ret = imx334_update_exp_gain(imx334, exposure, analog_gain); in imx334_set_ctrl()
|
D | ov2685.c | 99 struct v4l2_ctrl *exposure; member 604 __v4l2_ctrl_modify_range(ov2685->exposure, in ov2685_set_ctrl() 605 ov2685->exposure->minimum, max_expo, in ov2685_set_ctrl() 606 ov2685->exposure->step, in ov2685_set_ctrl() 607 ov2685->exposure->default_value); in ov2685_set_ctrl() 712 ov2685->exposure = v4l2_ctrl_new_std(handler, &ov2685_ctrl_ops, in ov2685_initialize_controls()
|
/linux-6.6.21/drivers/staging/media/atomisp/i2c/ |
D | atomisp-mt9m114.c | 780 struct atomisp_exposure *exposure) in mt9m114_s_exposure() argument 792 exposure->integration_time[0], exposure->gain[0], in mt9m114_s_exposure() 793 exposure->gain[1]); in mt9m114_s_exposure() 795 coarse_integration = exposure->integration_time[0]; in mt9m114_s_exposure() 801 analog_gain = exposure->gain[0]; in mt9m114_s_exposure() 802 digital_gain = exposure->gain[1]; in mt9m114_s_exposure() 1407 struct atomisp_exposure exposure; in mt9m114_s_stream() local 1416 exposure.integration_time[0] = dev->first_exp; in mt9m114_s_stream() 1417 exposure.gain[0] = dev->first_gain; in mt9m114_s_stream() 1418 exposure.gain[1] = dev->first_diggain; in mt9m114_s_stream() [all …]
|
D | atomisp-gc2235.c | 259 static int gc2235_set_exposure(struct v4l2_subdev *sd, int exposure, in gc2235_set_exposure() argument 266 ret = __gc2235_set_exposure(sd, exposure, gain, digitgain); in gc2235_set_exposure() 273 struct atomisp_exposure *exposure) in gc2235_s_exposure() argument 275 int exp = exposure->integration_time[0]; in gc2235_s_exposure() 276 int gain = exposure->gain[0]; in gc2235_s_exposure() 277 int digitgain = exposure->gain[1]; in gc2235_s_exposure()
|
/linux-6.6.21/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()
|