[media] s2255: add device_caps support to querycap
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
44d06d8273
commit
39696009d0
1 changed files with 3 additions and 1 deletions
|
@ -821,10 +821,12 @@ static int vidioc_querycap(struct file *file, void *priv,
|
||||||
{
|
{
|
||||||
struct s2255_fh *fh = file->private_data;
|
struct s2255_fh *fh = file->private_data;
|
||||||
struct s2255_dev *dev = fh->dev;
|
struct s2255_dev *dev = fh->dev;
|
||||||
|
|
||||||
strlcpy(cap->driver, "s2255", sizeof(cap->driver));
|
strlcpy(cap->driver, "s2255", sizeof(cap->driver));
|
||||||
strlcpy(cap->card, "s2255", sizeof(cap->card));
|
strlcpy(cap->card, "s2255", sizeof(cap->card));
|
||||||
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 | V4L2_CAP_STREAMING;
|
cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
|
||||||
|
cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue