[media] s2255: add device_caps support to querycap
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 7 Feb 2013 10:06:21 +0000 (07:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 18:36:12 +0000 (15:36 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/s2255/s2255drv.c

index 55c972a0dbedd32998445106624472796084534a..9cb832517040082e553a2e3c6d95e13d7524010e 100644 (file)
@@ -821,10 +821,12 @@ static int vidioc_querycap(struct file *file, void *priv,
 {
        struct s2255_fh *fh = file->private_data;
        struct s2255_dev *dev = fh->dev;
+
        strlcpy(cap->driver, "s2255", sizeof(cap->driver));
        strlcpy(cap->card, "s2255", sizeof(cap->card));
        usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info));
-       cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
+       cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
+       cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
        return 0;
 }