Skip to content

Commit 81f8c0e

Browse files
ijgs02mchehab
authored andcommitted
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 <[email protected]> Signed-off-by: Isaac Scott <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent c2eda35 commit 81f8c0e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/media/usb/uvc/uvc_driver.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2848,6 +2848,15 @@ static const struct usb_device_id uvc_ids[] = {
28482848
.bInterfaceSubClass = 1,
28492849
.bInterfaceProtocol = 0,
28502850
.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) },
28512860
/* MT6227 */
28522861
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE
28532862
| USB_DEVICE_ID_MATCH_INT_INFO,

0 commit comments

Comments
 (0)