Skip to contentSkip to conversation

Add video camera controls

PATCH In review Gary Thomas 2 participants 5 messages Dec 17, 2013 – Jan 3, 2014

lore
Share & tools
lore
#0 lore raw

cover Add video camera controls

These patches support automatic enabling for the video camera.

Gary Thomas (2):
README: Add video camera control
rpi-config: Add video camera control

 README                                  |    4 ++++
 recipes-bcm/bootfiles/rpi-config_git.bb |    6 ++++++
 2 files changed, 10 insertions(+)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/2 README: Add video camera control

Add optional 'VIDEO_CAMERA' setting to enable video camera at boot time.

---
 README |    4 ++++
 1 file changed, 4 insertions(+)
README +4 -0
index c1321a3..c4be792 100644
@@ -158,6 +158,10 @@ CORE_FREQ = "500"
 SDRAM_FREQ = "500"
 OVER_VOLTAGE = "6"
 
+2.F. Optional - Video camera support with V4L2 drivers
+Set this variable to enable support for the video camera (Linux 3.12.4+ required)
+VIDEO_CAMERA = "1"
+
 
 3. Extra apps
 =============
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [meta-raspberrypi][PATCH 1/2] README: Add video camera control

Quoted 5 lines · Gary Thomas

Add optional 'VIDEO_CAMERA' setting to enable video camera at boot time.

Merged. Thanks.

Signature · 1 line
*ag*
#3 lore raw

PATCH 2/2 rpi-config: Add video camera control

In reply to Gary Thomas

Add video camera enable 'VIDEO_CAMERA' for config.txt

---
 recipes-bcm/bootfiles/rpi-config_git.bb |    6 ++++++
 1 file changed, 6 insertions(+)
recipes-bcm/bootfiles/rpi-config_git.bb +6 -0
index 4328070..66a8fa8 100644
@@ -52,6 +52,12 @@ do_deploy() {
 	if [ -n "${GPU_MEM_512}" ]; then
 		sed -i '/#gpu_mem_512/ c\gpu_mem_512=${GPU_MEM_512}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
 	fi
+
+	# Video camera support
+	if [ -n "${VIDEO_CAMERA}" ]; then
+		echo "# Enable video camera" >>${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
+		echo "start_x=1" >>${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
+	fi
 }
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
1.7.9.5
#4 lore raw

Re: [meta-raspberrypi][PATCH 2/2] rpi-config: Add video camera control

Quoted 5 lines · Gary Thomas

Add video camera enable 'VIDEO_CAMERA' for config.txt

Merged. Thanks.

Signature · 1 line
*ag*