[media] vivi: set device_caps
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 7 Nov 2011 09:53:06 +0000 (06:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 23 Jan 2012 18:44:06 +0000 (16:44 -0200)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/vivi.c

index 7d754fbcccbf78761b0185fdd2304513c70999af..84ea88dc10ada0f1a60ae816ae13b73ab83ca965 100644 (file)
@@ -819,8 +819,9 @@ static int vidioc_querycap(struct file *file, void  *priv,
        strcpy(cap->driver, "vivi");
        strcpy(cap->card, "vivi");
        strlcpy(cap->bus_info, dev->v4l2_dev.name, sizeof(cap->bus_info));
-       cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | \
-                           V4L2_CAP_READWRITE;
+       cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING |
+                           V4L2_CAP_READWRITE | V4L2_CAP_DEVICE_CAPS;
+       cap->device_caps = cap->capabilities;
        return 0;
 }