diff options
author | Milen Mitkov <mmitkov@mm-sol.com> | 2011-10-15 12:46:53 +0300 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-10-19 10:11:26 -0700 |
commit | c78fa2adcbe6ab50b751a45adde4483de528c5e6 (patch) | |
tree | 4c2a386c6144802f788956d4d99390be573d95e2 /camera | |
parent | 40c372a287b4f797b90da3e2a460d3818da4e5d8 (diff) | |
download | hardware_ti_omap4xxx-c78fa2adcbe6ab50b751a45adde4483de528c5e6.zip hardware_ti_omap4xxx-c78fa2adcbe6ab50b751a45adde4483de528c5e6.tar.gz hardware_ti_omap4xxx-c78fa2adcbe6ab50b751a45adde4483de528c5e6.tar.bz2 |
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 <mmitkov@mm-sol.com>
Diffstat (limited to 'camera')
-rwxr-xr-x | camera/OMXCameraAdapter/OMXCameraAdapter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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) ) { |