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

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

[media] s2255: add device_caps support to querycap

parent 44d06d82
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
}