libcamera/src
Paul Elder f155e63816 v4l2: v4l2_camera_proxy: Clear internal buffer vector on reqbufs 0
If VIDIOC_REQBUFS with count = 0 is called when the stream is not on,
clear the proxy's internal vector of buffer. If the stream is on when
reqbufs 0 is called, return -EBUSY.

Note that this is contrary to what the V4L2 docs say (reqbufs 0 when
streaming should also streamoff), but it is how the V4L2 implementation
works. v4l2-compliance doesn't seem to care either way, however, so we
cater to the implementation, and no longer call streamoff on reqbufs 0.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-06-25 23:47:13 +09:00
..
android libcamera: Replace explicit DRM FourCCs with libcamera formats 2020-06-18 13:26:58 +03:00
cam (q)cam: Fix header guards 2020-05-18 16:35:55 +03:00
gstreamer gst: Replace explicit DRM FourCCs with libcamera formats 2020-06-18 13:26:43 +03:00
ipa libcamera: ipa: raspberrypi: Plumb in the libcamera sharpness control 2020-06-25 06:47:53 +03:00
libcamera libcamera: Add a sharpness strength control 2020-06-25 06:47:53 +03:00
qcam meson: options: Add an option to control compilation of qcam 2020-06-24 19:06:16 +02:00
v4l2 v4l2: v4l2_camera_proxy: Clear internal buffer vector on reqbufs 0 2020-06-25 23:47:13 +09:00
meson.build licenses: License all meson files under CC0-1.0 2020-05-13 16:46:24 +03:00