From b84235498b17120fa0fad2da7ddae719f318c70c Mon Sep 17 00:00:00 2001 From: Verbytsky Pavel <75797160+Emtyffx@users.noreply.github.com> Date: Sat, 20 Apr 2024 18:53:26 +0300 Subject: [PATCH] Fixes of camera for Quanta ACER HD User Facing --- drivers/media/usb/uvc/uvc_driver.c | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index bbd90123a4e7..6d5e353b6135 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2463,6 +2463,42 @@ static const struct usb_device_id uvc_ids[] = { .bInterfaceSubClass = 1, .bInterfaceProtocol = 0, .driver_info = (kernel_ulong_t)&uvc_quirk_probe_minmax }, + + /** + * Fix for the problem with cameras on Acer Nitro 5 Series. + * + * Fix required for the camera here + * Thanks for @Giuliano69 for providing the fix + */ + /* Quanta ACER HD User Facing 0x4035 - Experimental */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | + USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x0408, + .idProduct = 0x4035, + .bInterfaceClass = USB_CLASS_VIDEO, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = UVC_PC_PROTOCOL_15, + .driver_info = (kernel_ulong_t) & + (const struct uvc_device_info){ + .uvc_version = 0x010a, + } }, + + /* Quanta ACER HD User Facing 4033 - Experimental !! */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | + USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x0408, + .idProduct = 0x4033, + .bInterfaceClass = USB_CLASS_VIDEO, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = UVC_PC_PROTOCOL_15, + .driver_info = (kernel_ulong_t) & + (const struct uvc_device_info){ + .uvc_version = 0x010a, + } }, + + + /* Fix end here */ + /* Genius eFace 2025 */ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO,