summaryrefslogtreecommitdiffstats
path: root/camerawrapper
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2012-12-24 11:17:53 +0100
committercodeworkx <codeworkx@cyanogenmod.org>2012-12-24 11:17:53 +0100
commita0088c5894f3b3e0507210917ebb5d9928932f05 (patch)
treeb64a2ad6d01bfcc7362fd5d4af84091e91a79205 /camerawrapper
parenteec6623e146a314341a6de24690938da89dfc46f (diff)
downloaddevice_samsung_p5100-a0088c5894f3b3e0507210917ebb5d9928932f05.zip
device_samsung_p5100-a0088c5894f3b3e0507210917ebb5d9928932f05.tar.gz
device_samsung_p5100-a0088c5894f3b3e0507210917ebb5d9928932f05.tar.bz2
p51xx: remove exposure hack
Cam app supports -5 to +5 now. Change-Id: I8bfd8a9f8e88214efada99309da4092027d21483
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)