media: video: tegra: sh532u: Focuser range tuning support
authorNaren Bhat <nbhat@nvidia.com>
Thu, 21 Jun 2012 23:48:51 +0000 (16:48 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 16 Jul 2012 12:40:38 +0000 (17:40 +0530)
commit209a8bac16d8dc13381849491bac08ad0a6c3b56
tree1c1247684892d0438782c5cb60946f9122ef9702
parent5917c3c5c8eb676d1fe61fe42d22d617ce9fcf36
media: video: tegra: sh532u: Focuser range tuning support

Support for get/set capabilities added. Focuser code has a way to
calibrate itself that results in determination of optimal working
range. This along with actual range from device ROM are returned
to the caller. Focuser has the macro at lower end and infinity at
farther end of the range, which are reversed to the user level to
keep the inf/macro positions to be consistent. Focuser range
translation is taken out.

Bug 1004816

Change-Id: I1a086ff10e99940f9ad861397bf7e71e9996c68a
Signed-off-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-on: http://git-master/r/110443
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Tested-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/media/video/tegra/sh532u.c
include/media/nvc_focus.h