Lines Matching refs:clockdiv
1040 u8 clockdiv = (60 * sd->exposure + 7999) / 8000;
1043 if (clockdiv < sd->min_clockdiv && gspca_dev->width >= 320)
1044 clockdiv = sd->min_clockdiv;
1045 else if (clockdiv < 2)
1046 clockdiv = 2;
1048 if (sd->cam_type == CAM_TYPE_VGA && clockdiv < 4)
1049 clockdiv = 4;
1051 /* Frame exposure time in ms = 1000 * clockdiv / 60 ->
1052 exposure = (sd->exposure / 8) * 511 / (1000 * clockdiv / 60) */
1053 exposure = (60 * 511 * sd->exposure) / (8000 * clockdiv);
1063 sensor_write1(gspca_dev, 0x02, clockdiv);