aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2011-10-18 22:49:39 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2011-10-18 22:49:45 +0530
commit0e8c4ff5239312d4db8630b6bb7a2beddb2854bd (patch)
treebd6c763a3f8f530f891772419c17f24bcc2356ea
parent3f3a87fefc56d437bdbf89c14d08c50d721dc646 (diff)
camera: Enable camera in the build
Enable camera in the build and set right permissions to camera for the app to access it Change-Id: Ie729387c5387818026039866ce9d7e5fd441e76d Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--BoardConfig.mk2
-rw-r--r--init.rc3
2 files changed, 4 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 6eb70b9..36e76b5 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -19,7 +19,7 @@ BOARD_USES_GENERIC_AUDIO := true
BOARD_USES_ALSA_AUDIO := true
OMAP_ENHANCEMENT := false
HARDWARE_OMX := false
-USE_CAMERA_STUB := true
+USE_CAMERA_STUB := false
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := false
diff --git a/init.rc b/init.rc
index 7e0342a..eb5fe1f 100644
--- a/init.rc
+++ b/init.rc
@@ -89,6 +89,9 @@ loglevel 3
# 5.0 %
write /dev/cpuctl/bg_non_interactive/cpu.shares 52
+ # Set access for camera
+ chmod 0666 /dev/video0
+
on fs
# mount mmc partitions
mount ext4 /dev/block/mmcblk0p3 /system ro