From 53de9c615657a99910708f8e5ef85fbf944d1c1b Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Tue, 8 May 2012 16:50:33 -0300 Subject: [PATCH] --- yaml --- r: 306477 b: refs/heads/master c: c551af62e506889e4c5611433cb72b5fe8157566 h: refs/heads/master i: 306475: 1f5d2c68131166195519da67fa8368c2099d7fb8 v: v3 --- [refs] | 2 +- trunk/drivers/media/video/arv.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6976e8d8c4f3..9eb54f3427bb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 34caed8b3a1ec07a5b8fde42b7c4784aa2fb9440 +refs/heads/master: c551af62e506889e4c5611433cb72b5fe8157566 diff --git a/trunk/drivers/media/video/arv.c b/trunk/drivers/media/video/arv.c index b6ed44aebe30..e346d32d08ce 100644 --- a/trunk/drivers/media/video/arv.c +++ b/trunk/drivers/media/video/arv.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -403,7 +404,8 @@ static int ar_querycap(struct file *file, void *priv, strlcpy(vcap->driver, ar->vdev.name, sizeof(vcap->driver)); strlcpy(vcap->card, "Colour AR VGA", sizeof(vcap->card)); strlcpy(vcap->bus_info, "Platform", sizeof(vcap->bus_info)); - vcap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE; + vcap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE; + vcap->capabilities = vcap->device_caps | V4L2_CAP_DEVICE_CAPS; return 0; } @@ -709,6 +711,8 @@ static int ar_initialize(struct ar *ar) static const struct v4l2_file_operations ar_fops = { .owner = THIS_MODULE, + .open = v4l2_fh_open, + .release = v4l2_fh_release, .read = ar_read, .unlocked_ioctl = video_ioctl2, }; @@ -769,6 +773,7 @@ static int __init ar_init(void) ar->vdev.fops = &ar_fops; ar->vdev.ioctl_ops = &ar_ioctl_ops; ar->vdev.release = video_device_release_empty; + set_bit(V4L2_FL_USE_FH_PRIO, &ar->vdev.flags); video_set_drvdata(&ar->vdev, ar); if (vga) {