brcm2708: update linux 4.4 patches to latest version
[openwrt/staging/lynxis/omap.git] / target / linux / brcm2708 / patches-4.4 / 0371-BCM2835-V4L2-Increase-minimum-resolution-to-32x32.patch
1 From 85e7cbd400714fff019db2d1ec7eb500a6bbc0ba Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <6by9@users.noreply.github.com>
3 Date: Tue, 31 May 2016 10:38:31 +0100
4 Subject: [PATCH 371/423] BCM2835-V4L2: Increase minimum resolution to 32x32
5
6 https://github.com/raspberrypi/linux/issues/1498 showed
7 up that 16x16 is failing to work on the GPU for some reason.
8
9 GPU bug being tracked on
10 https://github.com/raspberrypi/firmware/issues/607
11 Workaround here by increasing minimum resolution via V4L2
12 to 32x32.
13
14 Signed-off-by: Dave Stevenson <6by9@users.noreply.github.com>
15 ---
16 drivers/media/platform/bcm2835/bcm2835-camera.c | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
18
19 --- a/drivers/media/platform/bcm2835/bcm2835-camera.c
20 +++ b/drivers/media/platform/bcm2835/bcm2835-camera.c
21 @@ -36,8 +36,8 @@
22
23 #define BM2835_MMAL_VERSION "0.0.2"
24 #define BM2835_MMAL_MODULE_NAME "bcm2835-v4l2"
25 -#define MIN_WIDTH 16
26 -#define MIN_HEIGHT 16
27 +#define MIN_WIDTH 32
28 +#define MIN_HEIGHT 32
29 #define MIN_BUFFER_SIZE (80*1024)
30
31 #define MAX_VIDEO_MODE_WIDTH 1280