From c78fa2adcbe6ab50b751a45adde4483de528c5e6 Mon Sep 17 00:00:00 2001 From: Milen Mitkov Date: Sat, 15 Oct 2011 12:46:53 +0300 Subject: CameraHAL: Always reset focus mode after capture Workaround when doing many consecutive shots, CAF wasn't getting restarted. Change-Id: Ibef033535360dc534de2b761861f7e9c5e79aec2 Signed-off-by: Milen Mitkov --- camera/OMXCameraAdapter/OMXCameraAdapter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'camera') diff --git a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp index 7bf6b61..9ee33be 100755 --- a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp +++ b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp @@ -2820,6 +2820,11 @@ OMX_ERRORTYPE OMXCameraAdapter::OMXCameraAdapterFillBufferDone(OMX_IN OMX_HANDLE } } + if ( (nextState & CAPTURE_ACTIVE) ) + { + mPending3Asettings |= SetFocus; + } + ///Prepare the frames to be sent - initialize CameraFrame object and reference count if( mWaitingForSnapshot && (mCapturedFrames > 0) ) { -- cgit v1.1