[media] hdpvr: support device_caps in querycap
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 12 Feb 2013 12:21:36 +0000 (09:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 14 Apr 2013 22:58:13 +0000 (19:58 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/hdpvr/hdpvr-video.c

index e30ece215c871abb94dd9eeba267b1bc233f3194..406eda85f610af3368cc03952656f249d7a097e5 100644 (file)
@@ -538,9 +538,9 @@ static int vidioc_querycap(struct file *file, void  *priv,
        strcpy(cap->driver, "hdpvr");
        strcpy(cap->card, "Hauppauge HD PVR");
        usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info));
-       cap->capabilities =     V4L2_CAP_VIDEO_CAPTURE |
-                               V4L2_CAP_AUDIO         |
-                               V4L2_CAP_READWRITE;
+       cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_AUDIO |
+                           V4L2_CAP_READWRITE;
+       cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
        return 0;
 }