Re: [PATCH] [media] mt9p031: fixed calculation of clk_div

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> writes:

>> and the upper limit is '63' (value uses 6:0 register bits).
>
> And this I don't. You can encode numbers from 0 to 127 on 7 bits.

yes; you are right (original '64' was correct because sensor allows only
dividers of a power-of-two).

>> -		mt9p031->clk_div = max_t(unsigned int, div, 64);
>> +		mt9p031->clk_div = min_t(unsigned int, div, 63);


Enrico
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux