[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160618112827.GE20130@amd>
Date: Sat, 18 Jun 2016 13:28:27 +0200
From: Pavel Machek <pavel@....cz>
To: Laurent Pinchart <laurent.pinchart@...asonboard.com>
Cc: Ivaylo Dimitrov <ivo.g.dimitrov.75@...il.com>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
pali.rohar@...il.com, sre@...nel.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, hverkuil@...all.nl,
Sakari Ailus <sakari.ailus@....fi>
Subject: Re: [PATCH 1/1] v4l: Add camera voice coil lens control class,
current control
Hi!
> 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,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Powered by blists - more mailing lists