CameraHAL: Setting focus mode shouldnt start focus scanning
authorMilen Mitkov <mmitkov@mm-sol.com>
Mon, 24 Oct 2011 10:44:28 +0000 (13:44 +0300)
committerIliyan Malchev <malchev@google.com>
Wed, 9 Nov 2011 19:26:21 +0000 (11:26 -0800)
commit2136042f80a20aeeef3ece24bab027c401426334
tree42c86cd633cdc650b846e44981faa0459afa52e1
parent402d1d64ae8c806fa058e88e1c0ad8a4b6f80dd0
CameraHAL: Setting focus mode shouldnt start focus scanning

Part of the fix for b/5591797.

Use the new index OMX_TI_IndexAutofocusEnable to control
the AF algorithm when it should start scanning.

Until now, setting the focus to almost any mode
caused (unwanted) scanning.

Also, "Infinity" focus should actually have the
ability to perform scanning.

Change-Id: Iaa0f46a17d63acdd8f43b4b2b011f68fc7506165
Signed-off-by: Milen Mitkov <mmitkov@mm-sol.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
camera/OMXCameraAdapter/OMX3A.cpp
camera/OMXCameraAdapter/OMXFocus.cpp