diff options
author | John Crispin <john@openwrt.org> | 2015-12-17 09:29:22 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-12-17 09:29:22 +0000 |
commit | d4b8d51580f61bc242b3a51566d2e4afd1f4a150 (patch) | |
tree | 16c7b79fae4831e85c1239d0da5869893f7b65fa /target/linux/brcm2708/patches-4.1/0214-BCM2835-V4L2-Return-buffers-to-videobuf2-on-shutdown.patch | |
parent | 98bf3d41207f32bc14ca8b67435ddc75e93b8214 (diff) | |
download | upstream-d4b8d51580f61bc242b3a51566d2e4afd1f4a150.tar.gz upstream-d4b8d51580f61bc242b3a51566d2e4afd1f4a150.tar.bz2 upstream-d4b8d51580f61bc242b3a51566d2e4afd1f4a150.zip |
brcm2708: update 4.1 patches
As usual, this patches were taken (and rebased) from
https://github.com/raspberrypi/linux/commits/rpi-4.1.y
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 47922
Diffstat (limited to 'target/linux/brcm2708/patches-4.1/0214-BCM2835-V4L2-Return-buffers-to-videobuf2-on-shutdown.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.1/0214-BCM2835-V4L2-Return-buffers-to-videobuf2-on-shutdown.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.1/0214-BCM2835-V4L2-Return-buffers-to-videobuf2-on-shutdown.patch b/target/linux/brcm2708/patches-4.1/0214-BCM2835-V4L2-Return-buffers-to-videobuf2-on-shutdown.patch new file mode 100644 index 0000000000..6cae6e6ca2 --- /dev/null +++ b/target/linux/brcm2708/patches-4.1/0214-BCM2835-V4L2-Return-buffers-to-videobuf2-on-shutdown.patch @@ -0,0 +1,23 @@ +From bca6a0dce0230700814a3a0c5af3458e46d63d93 Mon Sep 17 00:00:00 2001 +From: Dave Stevenson <6by9@users.noreply.github.com> +Date: Tue, 14 Jul 2015 22:57:57 +0100 +Subject: [PATCH 214/222] BCM2835-V4L2: Return buffers to videobuf2 on shutdown + +https://github.com/raspberrypi/linux/issues/817 +Fixes the kernel warning from videobuf2 as buffers +are now returned as they are being flushed on +stop_streaming. +--- + drivers/media/platform/bcm2835/bcm2835-camera.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/media/platform/bcm2835/bcm2835-camera.c ++++ b/drivers/media/platform/bcm2835/bcm2835-camera.c +@@ -404,6 +404,7 @@ static void buffer_cb(struct vchiq_mmal_ + } + } else { + /* signal frame completion */ ++ vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); + complete(&dev->capture.frame_cmplt); + } + } |