Lines Matching full:exposure
74 struct { /* exposure/min_clockdiv control cluster */
75 struct v4l2_ctrl *exposure; member
699 /* Reg 3 msb and 4 is lsb of the exposure setting*/ in start_vga_cam()
811 int exposure = MR97310A_EXPOSURE_DEFAULT; in setexposure() local
815 /* This cam does not like exposure settings < 300, in setexposure()
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()
826 /* We have both a clock divider and an exposure register. in setexposure()
828 the maximum exposure and then we calculate the exposure in setexposure()
831 Note our 0 - 4095 exposure is mapped to 0 - 511 in setexposure()
832 milliseconds exposure time */ in setexposure()
844 /* Frame exposure time in ms = 1000 * clockdiv / 60 -> in setexposure()
845 exposure = (sd->exposure / 8) * 511 / (1000 * clockdiv / 60) */ in setexposure()
846 exposure = (60 * 511 * expo) / (8000 * clockdiv); in setexposure()
847 if (exposure > 511) in setexposure()
848 exposure = 511; in setexposure()
850 /* exposure register value is reversed! */ in setexposure()
851 exposure = 511 - exposure; in setexposure()
853 buf[0] = exposure & 0xff; in setexposure()
854 buf[1] = exposure >> 8; in setexposure()
900 setexposure(gspca_dev, sd->exposure->val, in sd_s_ctrl()
990 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1001 v4l2_ctrl_cluster(2, &sd->exposure); in sd_init_controls()