]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
media: uvcvideo: Add Kurokesu C1 PRO camera
authorIsaac Scott <isaac.scott@ideasonboard.com>
Tue, 17 Dec 2024 11:13:51 +0000 (11:13 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 2 Jan 2025 08:58:30 +0000 (09:58 +0100)
Add support for the Kurokesu C1 PRO camera. This camera experiences the
same issues faced by the Sonix Technology Co. 292A IPC AR0330. As such,
enable the UVC_QUIRK_MJPEG_NO_EOF quirk for this device to prevent
frames from being erroneously dropped.

Signed-off-by: Isaac Scott <isaac.scott@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/uvc/uvc_driver.c

index 8a8d194e51cd74d03a71cc012d64c996e26de1a9..a10d4f4d9f95f97d586ffc037c9fcc796e97738a 100644 (file)
@@ -2885,6 +2885,15 @@ static const struct usb_device_id uvc_ids[] = {
          .bInterfaceSubClass   = 1,
          .bInterfaceProtocol   = 0,
          .driver_info          = (kernel_ulong_t)&uvc_quirk_probe_minmax },
+       /* Kurokesu C1 PRO */
+       { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE
+                               | USB_DEVICE_ID_MATCH_INT_INFO,
+         .idVendor             = 0x16d0,
+         .idProduct            = 0x0ed1,
+         .bInterfaceClass      = USB_CLASS_VIDEO,
+         .bInterfaceSubClass   = 1,
+         .bInterfaceProtocol   = 0,
+         .driver_info          = UVC_INFO_QUIRK(UVC_QUIRK_MJPEG_NO_EOF) },
        /* Syntek (HP Spartan) */
        { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE
                                | USB_DEVICE_ID_MATCH_INT_INFO,