summaryrefslogtreecommitdiff
path: root/camera/inc/Common.h
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/inc/Common.h
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/inc/Common.h')
-rw-r--r--camera/inc/Common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/camera/inc/Common.h b/camera/inc/Common.h
index b369e65..690fce7 100644
--- a/camera/inc/Common.h
+++ b/camera/inc/Common.h
@@ -29,6 +29,15 @@
# define CAMHAL_LOGD DBGUTILS_LOGD
# define CAMHAL_LOGDA DBGUTILS_LOGDA
# define CAMHAL_LOGDB DBGUTILS_LOGDB
+# ifdef CAMERAHAL_SUPERVERBOSE
+# define CAMHAL_LOGSV DBGUTILS_LOGV
+# define CAMHAL_LOGSVA DBGUTILS_LOGVA
+# define CAMHAL_LOGSVB DBGUTILS_LOGVB
+# else
+# define CAMHAL_LOGSV(...)
+# define CAMHAL_LOGSVA(str)
+# define CAMHAL_LOGSVB(str, ...)
+# endif
# ifdef CAMERAHAL_DEBUG_VERBOSE
# define CAMHAL_LOGV DBGUTILS_LOGV
# define CAMHAL_LOGVA DBGUTILS_LOGVA
@@ -42,6 +51,9 @@
# define CAMHAL_LOGD(...)
# define CAMHAL_LOGDA(str)
# define CAMHAL_LOGDB(str, ...)
+# define CAMHAL_LOGSV(...)
+# define CAMHAL_LOGSVA(str)
+# define CAMHAL_LOGSVB(str, ...)
# define CAMHAL_LOGV(...)
# define CAMHAL_LOGVA(str)
# define CAMHAL_LOGVB(str, ...)