linux-surface / kernel

Linux kernel with modifications for Microsoft Surface devices.
Other
124 stars 34 forks source link

Fixes for the ov8865 driver #113

Closed djrscally closed 3 years ago

djrscally commented 3 years ago

Thanks to @jhautbois for spotting these.

The black image problem people are having comes when the exposure set goes too close to the VTS. Most sensor drivers have some margin built in to prevent that, but I forgot to include that in the changes to the exposure control in ov8865. Add one in to avoid the black screen issue.

Opportunistically fix the max analogue gain. The field is 12 bits wide which is where the 8191 figure came from, but the driver specifies it as having a max of 16x gain

qzed commented 3 years ago

I can confirm that the "black image problem" is fixed by this on my SB2.