Skip to contentSkip to conversation

Added GenesysLogic BW Microscope device id

PATCH In review Renzo Dani 2 participants 2 messages Apr 20, 2012 – Apr 21, 2012 Media (V4L/DVB)

lore
Share & tools
lore

Renzo Dani

author
#0 lore raw

PATCH 1/1 Added GenesysLogic BW Microscope device id

From: Renzo Dani <[email protected]>

---
 drivers/media/video/uvc/uvc_driver.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
drivers/media/video/uvc/uvc_driver.c +10 -1
index 1d13172..b8c94b4 100644
@@ -2176,7 +2176,16 @@ static struct usb_device_id uvc_ids[] = {
 	  .bInterfaceSubClass	= 1,
 	  .bInterfaceProtocol	= 0,
 	  .driver_info		= UVC_QUIRK_STREAM_NO_FID },
-	/* Hercules Classic Silver */
+	/* Genesys Logic USB 2.0 BW Microscope */
+        { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE
+                                | USB_DEVICE_ID_MATCH_INT_INFO,
+          .idVendor             = 0x05e3,
+          .idProduct            = 0x0511,
+          .bInterfaceClass      = USB_CLASS_VIDEO,
+          .bInterfaceSubClass   = 1,
+          .bInterfaceProtocol   = 0,
+          .driver_info          = UVC_QUIRK_STREAM_NO_FID },
+        /* Hercules Classic Silver */
 	{ .match_flags		= USB_DEVICE_ID_MATCH_DEVICE
 				| USB_DEVICE_ID_MATCH_INT_INFO,
 	  .idVendor		= 0x06f8,
Signature · 1 line
1.7.3.4
#1 lore raw

Hi Renzo,

Quoted 3 lines · On Friday 20 April 2012 20:28:43 Renzo Dani wrote:

From: Renzo Dani <[email protected]>

Thank you for the patch.

Quoted 11 lines
---
 drivers/media/video/uvc/uvc_driver.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/drivers/media/video/uvc/uvc_driver.c index 1d13172..b8c94b4 100644

drivers/media/video/uvc/uvc_driver.c +0 -0
@@ -2176,7 +2176,16 @@ static struct usb_device_id uvc_ids[] = {
 	  .bInterfaceSubClass	= 1,
 	  .bInterfaceProtocol	= 0,

drivers/media/video/uvc/uvc_driver.c static struct usb_device_id uvc_ids[] = { · line 2186

Quoted 10 lines
drivers/media/video/uvc/uvc_driver.c +8 -1
 	  .driver_info		= UVC_QUIRK_STREAM_NO_FID },
-	/* Hercules Classic Silver */
+	/* Genesys Logic USB 2.0 BW Microscope */
+        { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE
+                                | USB_DEVICE_ID_MATCH_INT_INFO,
+          .idVendor             = 0x05e3,
+          .idProduct            = 0x0511,
+          .bInterfaceClass      = USB_CLASS_VIDEO,
+          .bInterfaceSubClass   = 1,
+          .bInterfaceProtocol   = 0,

Please use tabs instead of space to indent the code. Running scripts/checkpatch.pl on the patch before sending it catches this kind of issues, it's thus a good practice to do so. As the patch is small I've fixed the issue myself, there's no need to resubmit it.

drivers/media/video/uvc/uvc_driver.c static struct usb_device_id uvc_ids[] = { · line 2187

Quoted 1 line
drivers/media/video/uvc/uvc_driver.c +1 -0
+          .driver_info          = UVC_QUIRK_STREAM_NO_FID },

I suppose you have tested the device without this patch and that it didn't work. Could you please confirm that ? Could you please also send me the output of

lsusb -v -d 05e3:0511

Quoted 6 lines
drivers/media/video/uvc/uvc_driver.c +1 -0
+        /* Hercules Classic Silver */
 	{ .match_flags		= USB_DEVICE_ID_MATCH_DEVICE
 
 				| USB_DEVICE_ID_MATCH_INT_INFO,

.idVendor = 0x06f8,

Signature · 3 lines
Regards,

Laurent Pinchart