[media] uvcvideo: Enable VIDIOC_CREATE_BUFS
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 29 Jan 2014 16:13:52 +0000 (13:13 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Feb 2014 16:24:32 +0000 (13:24 -0300)
commit6e9179e2af61f93e6416c3dd11aca46dcd5a68e8
tree9a4e52f8018be2e1306e8f30e45af016895ffe0c
parentbddb9d0e97f20dfd614d3dd56043418766703936
[media] uvcvideo: Enable VIDIOC_CREATE_BUFS

This patch enables the ioctl to create additional buffers on the
videobuf2 capture queue.

[laurent.pinchart@ideasonboard.com: Acquire privileges instead of just
checking them in VIDIOC_CREATE_BUFS implementation]

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/uvc/uvc_queue.c
drivers/media/usb/uvc/uvc_v4l2.c
drivers/media/usb/uvc/uvcvideo.h