|
@@ -1020,9 +1020,12 @@ static int v4l_querycap(const struct v4l2_ioctl_ops *ops,
|
|
|
struct file *file, void *fh, void *arg)
|
|
|
{
|
|
|
struct v4l2_capability *cap = (struct v4l2_capability *)arg;
|
|
|
+ struct video_device *vfd = video_devdata(file);
|
|
|
int ret;
|
|
|
|
|
|
cap->version = LINUX_VERSION_CODE;
|
|
|
+ cap->device_caps = vfd->device_caps;
|
|
|
+ cap->capabilities = vfd->device_caps | V4L2_CAP_DEVICE_CAPS;
|
|
|
|
|
|
ret = ops->vidioc_querycap(file, fh, cap);
|
|
|
|