diff options
author | Dheeraj CVR <cvr.dheeraj@gmail.com> | 2013-05-01 17:15:03 +0530 |
---|---|---|
committer | Dheeraj CVR <cvr.dheeraj@gmail.com> | 2013-05-01 17:15:06 +0530 |
commit | ca3e84972778d925733b9d5a6341a00de4e87c13 (patch) | |
tree | 0a9f1dd23c53812f0e7804589f1214fc68f9de21 | |
parent | 57b5e28490e96b238b7e7a55d8d2a03ca6e982b8 (diff) | |
download | device_samsung_smdk4412-common-ca3e84972778d925733b9d5a6341a00de4e87c13.zip device_samsung_smdk4412-common-ca3e84972778d925733b9d5a6341a00de4e87c13.tar.gz device_samsung_smdk4412-common-ca3e84972778d925733b9d5a6341a00de4e87c13.tar.bz2 |
smdk4412-common:camera: workaround for snapshot crash with touch2focus and flash
Auto Exposure Lock is used during touch to focus
with flash enabled. This prevents the sensor for taking
a picture since the Lock is acquired but is not released.
Fixup the CameraParameters and prevent the Auto Exposure
Lock from being used."
Change-Id: Iefd8f0bfdd534537101cd1ad4f2d957f725978f1
-rw-r--r-- | camerawrapper/CameraWrapper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/camerawrapper/CameraWrapper.cpp b/camerawrapper/CameraWrapper.cpp index c93a7e9..6a86290 100644 --- a/camerawrapper/CameraWrapper.cpp +++ b/camerawrapper/CameraWrapper.cpp @@ -100,6 +100,7 @@ static char * camera_fixup_getparams(int id, const char * settings) // fix params here params.set(android::CameraParameters::KEY_SUPPORTED_ISO_MODES, iso_values[id]); + params.set(android::CameraParameters::KEY_AUTO_EXPOSURE_LOCK, "false"); android::String8 strParams = params.flatten(); char *ret = strdup(strParams.string()); @@ -125,6 +126,8 @@ char * camera_fixup_setparams(int id, const char * settings) else if(strcmp(isoMode, "ISO800") == 0) params.set(android::CameraParameters::KEY_ISO_MODE, "800"); } + //Workaround for crash when touch to focus is used with flash on. + params.set(android::CameraParameters::KEY_AUTO_EXPOSURE_LOCK, "false"); #ifdef CAMERA_WITH_CITYID_PARAM params.set(android::CameraParameters::KEY_CITYID, 0); |