aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-3.10/0179-V4L2-Increase-threshold-for-switching-between-video-.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2014-09-27 19:10:51 +0000
committerFlorian Fainelli <florian@openwrt.org>2014-09-27 19:10:51 +0000
commitc65ec1aa8fbcbafdc568c4206286ca77f3234caf (patch)
tree563323b952b96b10d5cca5b124de2cd9266259b0 /target/linux/brcm2708/patches-3.10/0179-V4L2-Increase-threshold-for-switching-between-video-.patch
parent7771ecddf3b18914aa513ef818042516f61e79a9 (diff)
downloadmaster-187ad058-c65ec1aa8fbcbafdc568c4206286ca77f3234caf.tar.gz
master-187ad058-c65ec1aa8fbcbafdc568c4206286ca77f3234caf.tar.bz2
master-187ad058-c65ec1aa8fbcbafdc568c4206286ca77f3234caf.zip
brcm2708: update 3.10 patches with raspberrypi/rpi-3.10.y of 27 Apr. 2014
Update the 3.10 rasperry patches by rebasing raspberry/rpi-3.10-y against linux-stable/v3.10.49. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42678 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm2708/patches-3.10/0179-V4L2-Increase-threshold-for-switching-between-video-.patch')
-rw-r--r--target/linux/brcm2708/patches-3.10/0179-V4L2-Increase-threshold-for-switching-between-video-.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-3.10/0179-V4L2-Increase-threshold-for-switching-between-video-.patch b/target/linux/brcm2708/patches-3.10/0179-V4L2-Increase-threshold-for-switching-between-video-.patch
new file mode 100644
index 0000000000..a48473085e
--- /dev/null
+++ b/target/linux/brcm2708/patches-3.10/0179-V4L2-Increase-threshold-for-switching-between-video-.patch
@@ -0,0 +1,44 @@
+From 94172081d9bc1f358d799fcef2b6f07615bcca60 Mon Sep 17 00:00:00 2001
+From: Dave Stevenson <dsteve@broadcom.com>
+Date: Fri, 14 Mar 2014 17:03:45 +0000
+Subject: [PATCH 179/196] V4L2: Increase threshold for switching between video
+ & stills
+
+The threshold used to be hard and fast at 1280x720 and failed if
+either width or height exceeded those limits. Now it limits it at
+a pixel count of 1280*720 (ie 921600), so 1024x768 is now considered
+a video mode.
+
+Signed-off-by: Dave Stevenson <dsteve@broadcom.com>
+---
+ drivers/media/platform/bcm2835/bcm2835-camera.c | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/media/platform/bcm2835/bcm2835-camera.c b/drivers/media/platform/bcm2835/bcm2835-camera.c
+index b6880cc..b1eac21 100644
+--- a/drivers/media/platform/bcm2835/bcm2835-camera.c
++++ b/drivers/media/platform/bcm2835/bcm2835-camera.c
+@@ -42,6 +42,9 @@
+ #define MAX_HEIGHT 1944
+ #define MIN_BUFFER_SIZE (80*1024)
+
++/* Max number of pixels supported whilst still being considered
++ * a video mode by the GPU.
++ */
+ #define MAX_VIDEO_MODE_WIDTH 1280
+ #define MAX_VIDEO_MODE_HEIGHT 720
+
+@@ -893,8 +896,8 @@ static int mmal_setup_components(struct bm2835_mmal_dev *dev,
+ switch (mfmt->mmal_component) {
+ case MMAL_COMPONENT_CAMERA:
+ /* Make a further decision on port based on resolution */
+- if (f->fmt.pix.width <= MAX_VIDEO_MODE_WIDTH
+- && f->fmt.pix.height <= MAX_VIDEO_MODE_HEIGHT)
++ if ((f->fmt.pix.width*f->fmt.pix.height) <=
++ (MAX_VIDEO_MODE_WIDTH * MAX_VIDEO_MODE_HEIGHT))
+ camera_port = port =
+ &dev->component[MMAL_COMPONENT_CAMERA]->
+ output[MMAL_CAMERA_PORT_VIDEO];
+--
+1.9.1
+