Lines Matching refs:clockdiv
644 __u8 clockdiv;
650 clockdiv = (90 * sd->exposure + 1999) / 2000;
652 /* Note clockdiv = 3 also works, but when running at 30 fps, depending
656 if (clockdiv < 6)
657 clockdiv = 6;
658 else if (clockdiv > 63)
659 clockdiv = 63;
664 if (clockdiv < 6 || clockdiv > 12)
665 clockdiv = ((clockdiv + 2) / 3) * 3;
667 /* frame exposure time in ms = 1000 * clockdiv / 90 ->
668 exposure = (sd->exposure / 2) * 448 / (1000 * clockdiv / 90) */
669 exposure = (sd->exposure * 45 * 448) / (1000 * clockdiv);
674 reg_w(gspca_dev, 0x02, clockdiv);