Re: [PATCH 1/1] v4l: Add camera voice coil lens control class, current control

From: Pavel Machek
Date: Sat Jun 18 2016 - 07:28:48 EST


> If someone has analyzed the existing voice coil lens controllers and could
> share the result, in term of what parameters need to be controlled by the
> system and how they should be controlled, that would be very appreciated. Even
> better would be a real userspace implementation of a voice coil lens control
> algorithm.

Userspace implementation exists, it is called fcam-dev. What it
does... Starts capture, selects focus speed, makes it go through focus
range, looks for the sharpest image in the stream.

Then it computes time when the image was sharpest and thus lens
position, and goes back there.

So for ad5820, we need basically focus position and focus speed. (And
some 16/64 option).

Other coil drivers also have PWM vs. linear option.

Best regards,

(cesky, pictures)