From 191eb741a6823cbc023be4db95990300fb75f643 Mon Sep 17 00:00:00 2001 From: Takshak Mudgal <114814639+takshakmudgal@users.noreply.github.com> Date: Sun, 22 Sep 2024 00:36:08 +0530 Subject: [PATCH] Fix for ID 0408:4033 Quanta ACER HD User Facing Camera This issue has mainly arised in the newer Acer Aspire 3 Series Laptops, where the cameras with this specific `ID 0408:4033` were not working on linux. After doing some extensive research a fix was found @Giuliano69 which solved the issue. This PR aims to implement that fix in the main kernel so that this issue get's fixed for all. --- drivers/media/usb/uvc/uvc_driver.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index f0febdc08c2d..40db8a5f4e1d 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2430,6 +2430,24 @@ static const struct uvc_device_info uvc_quirk_force_y8 = { * though they are compliant. */ static const struct usb_device_id uvc_ids[] = { + /** + * Fix for the problem with cameras on Acer Nitro 5 Series & Acer Aspire 3 Series. + * + * Fix required for the camera here + * Thanks for @Giuliano69 for providing the fix + */ + /* 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 */ /* Quanta ACER HD User Facing */ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO,