From e351de67ac61ab6ebeffc995d647891edd24d2f4 Mon Sep 17 00:00:00 2001 From: Emilian Peev Date: Thu, 7 Jan 2016 20:01:01 +0100 Subject: Snapdragon Camera: Unlock AE&AWB before snapshot Currently the application contains logic which will lock AE&AWB before snapshot if AF didn't get triggered. Unlocking happens during image capture though and will get ignored because the camera state is already set to 'SNAPSHOT_IN_PROGRESS". This sequence of events can have side effects w.r.t. flash. To avoid this AE&AWB should always be unlocked before snapshot. Change-Id: Ie72bb7f5721419e448b2d1976f5873327dd3ada4 --- src/com/android/camera/PhotoModule.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/com') diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index 4f32a1bf2..c30a10fa2 100644 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -1567,12 +1567,13 @@ public class PhotoModule mParameters.remove(CameraSettings.KEY_QC_LEGACY_BURST); } - // Unlock AE&AWB during longshot - if (LONGSHOT == mCameraState) { - mFocusManager.setAeAwbLock(false); - setAutoExposureLockIfSupported(); - setAutoWhiteBalanceLockIfSupported(); - } + // Unlock AE&AWB, if they continue + // to be locked during snapshot, then + // side effects could be triggered w.r.t. + // flash. + mFocusManager.setAeAwbLock(false); + setAutoExposureLockIfSupported(); + setAutoWhiteBalanceLockIfSupported(); mCameraDevice.setParameters(mParameters); mParameters = mCameraDevice.getParameters(); -- cgit v1.2.3