summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorKyle Repinski <repinski23@gmail.com>2015-01-09 11:54:39 -0600
committerZiyan <jaraidaniel@gmail.com>2015-04-11 20:24:53 +0200
commit48d5c7c1d27835ae882ade0bb92a14e7874f5558 (patch)
tree4a1b559f18940ce85a8ef5a0fa78a68f903c7642 /camera
parentecad8bcd6952b4662afc7ab448d3a958554fdb31 (diff)
downloaddevice_samsung_tuna-48d5c7c1d27835ae882ade0bb92a14e7874f5558.zip
device_samsung_tuna-48d5c7c1d27835ae882ade0bb92a14e7874f5558.tar.gz
device_samsung_tuna-48d5c7c1d27835ae882ade0bb92a14e7874f5558.tar.bz2
camera: Limit tuna to 2 camera sensors.
We were not only attempting to access a mythical third sensor, but also seemed to think it supported STEREO (3D) mode, crashing Ducati. Thanks to @Hashcode, remembered he did something like this for jem a while back.
Diffstat (limited to 'camera')
-rw-r--r--camera/inc/CameraProperties.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/camera/inc/CameraProperties.h b/camera/inc/CameraProperties.h
index bfc6012..0b8680e 100644
--- a/camera/inc/CameraProperties.h
+++ b/camera/inc/CameraProperties.h
@@ -35,7 +35,11 @@
namespace Ti {
namespace Camera {
+#ifdef OMAP_TUNA
+#define MAX_CAMERAS_SUPPORTED 2
+#else
#define MAX_CAMERAS_SUPPORTED 3
+#endif
#define MAX_SIMUL_CAMERAS_SUPPORTED 1
#define MAX_PROP_NAME_LENGTH 50
#define MAX_PROP_VALUE_LENGTH 2048