From a6d224521e47a17da9e267b50b4b95e1f6fb2f2b Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Mon, 17 Jul 2017 20:47:26 -0400 Subject: [PATCH] v4l2: UVC driver is named uvcvideo these days The quirk to avoid probing interlacing didn't work anymore as the driver is now name uvcvideo. This should slightly speed up camera startup. --- sys/v4l2/v4l2_calls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c index 4ee9d6e..b12efe0 100644 --- a/sys/v4l2/v4l2_calls.c +++ b/sys/v4l2/v4l2_calls.c @@ -594,7 +594,8 @@ gst_v4l2_open (GstV4l2Object * v4l2object) /* UVC devices are never interlaced, and doing VIDIOC_TRY_FMT on them * causes expensive and slow USB IO, so don't probe them for interlaced */ - if (!strcmp ((char *) v4l2object->vcap.driver, "uvcusb")) { + if (!strcmp ((char *) v4l2object->vcap.driver, "uvcusb") || + !strcmp ((char *) v4l2object->vcap.driver, "uvcvideo")) { v4l2object->never_interlaced = TRUE; } -- 2.7.4