-
Notifications
You must be signed in to change notification settings - Fork 54.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for Quanta Acer HD User Facing Web camera(original code from @Giuliano69) #843
base: master
Are you sure you want to change the base?
Conversation
@gooroodev review |
1. Summary of ChangesThe pull request introduces support for two models of Quanta Acer HD User Facing webcams in the
2. Issues, Bugs, or TyposIssue 1: Comment FormattingThe comments added for the fixes are slightly inconsistent and could be more concise. Additionally, the comment block uses an unusual format with leading asterisks. Proposed Improvement: - /**
- * Fix for the problem with cameras on Acer Nitro 5 Series.
- *
- * Fix required for the camera here
- * Thanks for @Giuliano69 for providing the fix
- */
+ /*
+ * Fix for the problem with cameras on Acer Nitro 5 Series.
+ * Thanks to @Giuliano69 for providing the fix.
+ */ Issue 2: Redundant CommentThe comment Proposed Improvement: - /* Fix end here */ 3. General Review of the Code Quality and Style
Final Code After Improvements:diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
index bbd90123a4e76d..6d5e353b6135bb 100644
--- a/drivers/media/usb/uvc/uvc_driver.c
+++ b/drivers/media/usb/uvc/uvc_driver.c
@@ -2463,6 +2463,38 @@ 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.
+ * Thanks to @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,
+ } },
+
/* Genius eFace 2025 */
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE
| USB_DEVICE_ID_MATCH_INT_INFO, This review ensures the code is clean, maintainable, and follows the project's coding standards. Yours, Gooroo.dev. To receive reviews automatically, install Github App |
Shouldn't this go through the kernel mailing list? |
when will this be added to the kernel? I have a |
There is a problem that I and some other users encounted while not being able to turn on camera on linux.
After searching for some time I have found fix created by @Giuliano69, thanking him a lot for this fix.
It will be good to merge this code into official uvc driver for not so experienced users, because they can't find the fix themselves(i also have spent some time finding the fix and applying it). And also the fix that require changing some kernel code can scare newbies.