diff --git a/fthd_v4l2.c b/fthd_v4l2.c index 9bb5bdf..6e6b768 100644 --- a/fthd_v4l2.c +++ b/fthd_v4l2.c @@ -730,6 +730,10 @@ int fthd_v4l2_register(struct fthd_private *dev_priv) vdev->queue = q; vdev->release = video_device_release; vdev->ctrl_handler = &dev_priv->v4l2_ctrl_handler; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,0) + vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | + V4L2_CAP_STREAMING; +#endif video_set_drvdata(vdev, dev_priv); ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); if (ret) {