summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h
diff options
context:
space:
mode:
authorDave Stevenson <dave.stevenson@raspberrypi.org>2019-06-29 14:48:23 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-01 09:09:38 +0200
commita26be06d6d96c10a9ab005e99d93fbb5d3babd98 (patch)
tree199ea88787022e3d548bf17e1fb5b0ee1bee7e30 /drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h
parentbb8e97006d701ae725a177f8f322e5a75fa761b7 (diff)
downloadlinux-a26be06d6d96c10a9ab005e99d93fbb5d3babd98.tar.bz2
staging: bcm2835-camera: Handle empty EOS buffers whilst streaming
The change to mapping V4L2 to MMAL buffers 1:1 didn't handle the condition we get with raw pixel buffers (eg YUV and RGB) direct from the camera's stills port. That sends the pixel buffer and then an empty buffer with the EOS flag set. The EOS buffer wasn't handled and returned an error up the stack. Handle the condition correctly by returning it to the component if streaming, or returning with an error if stopping streaming. Fixes: 938416707071 ("staging: bcm2835-camera: Remove V4L2/MMAL buffer remapping") Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Acked-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h')
0 files changed, 0 insertions, 0 deletions