Commit 41022fcb authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] hdpvr: support device_caps in querycap

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 65fe42d6
...@@ -538,9 +538,9 @@ static int vidioc_querycap(struct file *file, void *priv, ...@@ -538,9 +538,9 @@ static int vidioc_querycap(struct file *file, void *priv,
strcpy(cap->driver, "hdpvr"); strcpy(cap->driver, "hdpvr");
strcpy(cap->card, "Hauppauge HD PVR"); strcpy(cap->card, "Hauppauge HD PVR");
usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info));
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_AUDIO |
V4L2_CAP_AUDIO | V4L2_CAP_READWRITE;
V4L2_CAP_READWRITE; cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment