Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: uvcvideo: Add new quirk definition for the Sonix Technology Co. 292a camera

The Sonix Technology Co. 292A camera (which uses an AR0330 sensor), can
produce MJPEG and H.264 streams concurrently. When doing so, it drops
the last packets of MJPEG frames every time the H.264 stream generates a
key frame. Set the UVC_QUIRK_MJPEG_NO_EOF quirk to work around the
issue.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Isaac Scott <isaac.scott@ideasonboard.com>
Link: https://lore.kernel.org/r/20241128145144.61475-3-isaac.scott@ideasonboard.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Isaac Scott and committed by
Mauro Carvalho Chehab
81f8c0e1 c2eda35e

+9
+9
drivers/media/usb/uvc/uvc_driver.c
··· 2848 2848 .bInterfaceSubClass = 1, 2849 2849 .bInterfaceProtocol = 0, 2850 2850 .driver_info = (kernel_ulong_t)&uvc_quirk_probe_minmax }, 2851 + /* Sonix Technology Co. Ltd. - 292A IPC AR0330 */ 2852 + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE 2853 + | USB_DEVICE_ID_MATCH_INT_INFO, 2854 + .idVendor = 0x0c45, 2855 + .idProduct = 0x6366, 2856 + .bInterfaceClass = USB_CLASS_VIDEO, 2857 + .bInterfaceSubClass = 1, 2858 + .bInterfaceProtocol = 0, 2859 + .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_MJPEG_NO_EOF) }, 2851 2860 /* MT6227 */ 2852 2861 { .match_flags = USB_DEVICE_ID_MATCH_DEVICE 2853 2862 | USB_DEVICE_ID_MATCH_INT_INFO,