summaryrefslogtreecommitdiff
path: root/camera/CameraHal.cpp
diff options
context:
space:
mode:
authorKyle Repinski <repinski23@gmail.com>2015-01-07 17:12:43 -0600
committerKyle Repinski <repinski23@gmail.com>2015-01-07 17:12:43 -0600
commit0cc4c4f9aa2f7bd4e7e79789ab25728711c51174 (patch)
tree94ab8beb57fc15fd170bc79264e7bebfe7a396d4 /camera/CameraHal.cpp
parent8fb9a0fd71feac29d55dbb1ae44cbff4420a0301 (diff)
camera: Fix more tuna issues, spruce up debugging.HEADlp5.0
- Move very verbose logs under new CAMERAHAL_SUPERVERBOSE and co. - Add back 'default focal length', as tuna just reports '.' when trying to auto-fetch it. - Hardcode camera facing values in insertFacing (sensor ID 305 is rear, the other (306) is front). - ifdef out more things that will cause tuna to... lose its gills. - 'Fix' preview resolutions not being inserted. - Enable a few built-in workarounds that were under the 'CAMERAHAL_TUNA' define. At this point, a few intelligent camera apps can handle the camera 'OK'. AF is very spotty. Signed-off-by: Kyle Repinski <repinski23@gmail.com>
Diffstat (limited to 'camera/CameraHal.cpp')
-rw-r--r--camera/CameraHal.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/camera/CameraHal.cpp b/camera/CameraHal.cpp
index 71ba1bb..a345e64 100644
--- a/camera/CameraHal.cpp
+++ b/camera/CameraHal.cpp
@@ -1108,6 +1108,7 @@ int CameraHal::setParameters(const android::CameraParameters& params)
mParameters.set(TICameraParameters::RAW_HEIGHT, valstr);
}
+#ifndef OMAP_TUNA
//TI extensions for enable/disable algos
if( (valstr = params.get(TICameraParameters::KEY_ALGO_FIXED_GAMMA)) != NULL )
{
@@ -1144,6 +1145,7 @@ int CameraHal::setParameters(const android::CameraParameters& params)
CAMHAL_LOGDB("Green Inballance Correction set %s", valstr);
mParameters.set(TICameraParameters::KEY_ALGO_GIC, valstr);
}
+#endif
android::CameraParameters adapterParams = mParameters;
@@ -4287,16 +4289,16 @@ void CameraHal::resetPreviewRes(android::CameraParameters *params)
void *
camera_buffer_get_omx_ptr (CameraBuffer *buffer)
{
- CAMHAL_LOGV("buffer_type %d opaque %p", buffer->type, buffer->opaque);
+ CAMHAL_LOGSV("buffer_type %d opaque %p", buffer->type, buffer->opaque);
if (buffer->type == CAMERA_BUFFER_ANW) {
buffer_handle_t *handle = (buffer_handle_t *)buffer->opaque;
- CAMHAL_LOGV("anw %08x", *handle);
+ CAMHAL_LOGSV("anw %08x", *handle);
return (void *)*handle;
} else if (buffer->type == CAMERA_BUFFER_ION) {
return (void *)buffer->fd;
} else {
- CAMHAL_LOGV("other %08x", buffer->opaque);
+ CAMHAL_LOGSV("other %08x", buffer->opaque);
return (void *)buffer->opaque;
}
}