mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
Rename V4L2_TYPE_GRABBER to V4L2_TYPE_VIDEO for 5.7rc1
Fixes builds on 5.7rc1; credit to:
4815caf32e
This commit is contained in:
@@ -41,6 +41,10 @@
|
|||||||
#define FTHD_MIN_HEIGHT 240
|
#define FTHD_MIN_HEIGHT 240
|
||||||
#define FTHD_NUM_FORMATS 2 /* NV16 is disabled for now */
|
#define FTHD_NUM_FORMATS 2 /* NV16 is disabled for now */
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 7, 0)
|
||||||
|
# define VFL_TYPE_VIDEO VFL_TYPE_GRABBER
|
||||||
|
#endif
|
||||||
|
|
||||||
static int fthd_buffer_queue_setup(
|
static int fthd_buffer_queue_setup(
|
||||||
struct vb2_queue *vq,
|
struct vb2_queue *vq,
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
|
||||||
@@ -729,7 +733,7 @@ int fthd_v4l2_register(struct fthd_private *dev_priv)
|
|||||||
V4L2_CAP_STREAMING;
|
V4L2_CAP_STREAMING;
|
||||||
#endif
|
#endif
|
||||||
video_set_drvdata(vdev, dev_priv);
|
video_set_drvdata(vdev, dev_priv);
|
||||||
ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1);
|
ret = video_register_device(vdev, VFL_TYPE_VIDEO, -1);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
video_device_release(vdev);
|
video_device_release(vdev);
|
||||||
goto fail_vdev;
|
goto fail_vdev;
|
||||||
|
|||||||
Reference in New Issue
Block a user