Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[media] hdpvr: support device_caps in querycap

parent 65fe42d6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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         |
	cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_AUDIO |
			    V4L2_CAP_READWRITE;
	cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
	return 0;
}