CameraHal: Sync AF cancel with incoming OMX events
authorEmilian Peev <epeev@mm-sol.com>
Mon, 22 Oct 2012 07:53:12 +0000 (10:53 +0300)
committerEino-Ville Talvala <etalvala@google.com>
Tue, 23 Oct 2012 16:30:42 +0000 (09:30 -0700)
commitb96dffd40e25d29a61f9fbd7f2e5968b5335b957
tree0b7384538b706387ca8a05a94737c08233beb5df
parentb6a9d10508e321ebc53193a117bf6c65d98ae888
CameraHal: Sync AF cancel with incoming OMX events

- Cancel AF is made to wait on incoming OMX events
  when AF status changes. An AF timeout is introduced
  in order not to block this call indefinitely.
- Additionally calls to 'autoFocus()' will immediately
  trigger AF callbacks if fixed modes are being used.

Bug: 6949572

Change-Id: I5f240fb6fc7fe53aecaff76d75d608dd522c1e27
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
camera/OMXCameraAdapter/OMXFocus.cpp
camera/inc/OMXCameraAdapter/OMXCameraAdapter.h