summaryrefslogtreecommitdiffstats
path: root/camerawrapper
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2012-12-24 11:16:49 +0100
committercodeworkx <codeworkx@cyanogenmod.org>2012-12-24 11:16:49 +0100
commit05b6ae8e3993cc5ae81bf59d33313d51733a1505 (patch)
tree064e1b22cb983799bcbfb37244fd360f72530b39 /camerawrapper
parent5b62906a6888312eb50f330f3bc5504b19cf15bb (diff)
downloaddevice_samsung_p3100-05b6ae8e3993cc5ae81bf59d33313d51733a1505.zip
device_samsung_p3100-05b6ae8e3993cc5ae81bf59d33313d51733a1505.tar.gz
device_samsung_p3100-05b6ae8e3993cc5ae81bf59d33313d51733a1505.tar.bz2
p31xx: remove exposure hack
Cam app supports -5 to +5 now. Change-Id: I6f3b0489da9541bc7547abf56015fc800292b184
Diffstat (limited to 'camerawrapper')
-rw-r--r--camerawrapper/CameraWrapper.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/camerawrapper/CameraWrapper.cpp b/camerawrapper/CameraWrapper.cpp
index ba6f90a..5c1223a 100644
--- a/camerawrapper/CameraWrapper.cpp
+++ b/camerawrapper/CameraWrapper.cpp
@@ -97,8 +97,8 @@ static char * camera_fixup_getparams(int id, const char * settings)
params.unflatten(android::String8(settings));
// fix params here
- params.set(android::CameraParameters::KEY_MIN_EXPOSURE_COMPENSATION, "-3");
- params.set(android::CameraParameters::KEY_MAX_EXPOSURE_COMPENSATION, "3");
+ //params.set(android::CameraParameters::KEY_MIN_EXPOSURE_COMPENSATION, "-3");
+ //params.set(android::CameraParameters::KEY_MAX_EXPOSURE_COMPENSATION, "3");
android::String8 strParams = params.flatten();
char *ret = strdup(strParams.string());
@@ -382,10 +382,7 @@ int camera_send_command(struct camera_device * device,
if(!device)
return -EINVAL;
- /* send_command causes the camera hal do to unexpected things like lockups.
- * don't pass any command to the vendor hal to prevent this */
- return 0;
- //return VENDOR_CALL(device, send_command, cmd, arg1, arg2);
+ return VENDOR_CALL(device, send_command, cmd, arg1, arg2);
}
void camera_release(struct camera_device * device)