Linux USB
 help / color / mirror / Atom feed
* adding a new device in uvc_driver
@ 2024-08-30 11:07 Amil Sanan
  2024-08-30 11:17 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Amil Sanan @ 2024-08-30 11:07 UTC (permalink / raw)
  To: Laurent Pinchart, dan.scally; +Cc: linux-usb


[-- Attachment #1.1: Type: text/plain, Size: 135 bytes --]

adding the webcam of new acer aspire7

output of lsusb: "Bus 001 Device 002: ID 0408:4033 Quanta Computer, Inc.
ACER HD User Facing

"

[-- Attachment #1.2: Type: text/html, Size: 427 bytes --]

[-- Attachment #2: 0001-add-a-device-in-uvc_driver.patch --]
[-- Type: text/x-patch, Size: 1187 bytes --]

From d18ad3bf9bbc93da3eeb0ca4ea6598955ac05a99 Mon Sep 17 00:00:00 2001
From: amilsanan <amilsananak@gmail.com>
Date: Thu, 29 Aug 2024 17:38:25 +0530
Subject: [PATCH] add a device in uvc_driver

Signed-off-by: amilsanan <amilsananak@gmail.com>
---
 drivers/media/usb/uvc/uvc_driver.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
index f0febdc08..1a3229ab6 100644
--- a/drivers/media/usb/uvc/uvc_driver.c
+++ b/drivers/media/usb/uvc/uvc_driver.c
@@ -2441,6 +2441,15 @@ static const struct usb_device_id uvc_ids[] = {
 	  .driver_info		= (kernel_ulong_t)&(const struct uvc_device_info){
 		.uvc_version = 0x010a,
 	  } },
+	  { .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, } },
 	/* LogiLink Wireless Webcam */
 	{ .match_flags		= USB_DEVICE_ID_MATCH_DEVICE
 				| USB_DEVICE_ID_MATCH_INT_INFO,
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-02  6:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30 11:07 adding a new device in uvc_driver Amil Sanan
2024-08-30 11:17 ` Greg KH
     [not found]   ` <CABprV6Rj9VZFFeuA5LSmrw3WR3tNPn3rUs4B3ad=MqDgHx3UdA@mail.gmail.com>
2024-09-02  5:57     ` Greg KH
2024-09-02  6:08       ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox