[media] v4l2-dev/ioctl.c: add vb2_queue support to video_device
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 22 Jun 2012 10:29:35 +0000 (07:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 20:30:54 +0000 (17:30 -0300)
commit5a5adf6b669cf1a3dd2af419cd68a4c491f384a3
tree42b1c4709c3c5cca04fb15bd369e6ae4921645d4
parent5d44f5e3e388739f017a74e73dab2a995673915f
[media] v4l2-dev/ioctl.c: add vb2_queue support to video_device

This prepares struct video_device for easier integration with vb2.

It also introduces a new lock that protects the vb2_queue. It is up
to the driver to use it or not. And the driver can associate an owner
filehandle with the queue to check whether queuing requests are
permitted for the calling filehandle.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c
drivers/media/video/v4l2-ioctl.c
include/media/v4l2-dev.h
include/media/v4l2-ioctl.h
include/media/videobuf2-core.h