Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306477
b: refs/heads/master
c: c551af6
h: refs/heads/master
i:
  306475: 1f5d2c6
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 20, 2012
1 parent acf8220 commit 53de9c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34caed8b3a1ec07a5b8fde42b7c4784aa2fb9440
refs/heads/master: c551af62e506889e4c5611433cb72b5fe8157566
7 changes: 6 additions & 1 deletion trunk/drivers/media/video/arv.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <media/v4l2-common.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-fh.h>
#include <linux/mutex.h>

#include <asm/uaccess.h>
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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,
};
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 53de9c6

Please sign in to comment.