gregkh / usbutils

USB utilities for Linux, including lsusb
http://www.linux-usb.org
356 stars 202 forks source link

lsusb: Improvements to UVC Interface Descriptor decoding #120

Closed neuschaefer closed 3 years ago

neuschaefer commented 3 years ago

This PR aims to improve how lsusb displays endpoint addresses in UVC VideoStreaming Interface Descriptors.

For example, lsusb output for my laptop's UVC webcam has changed like this:

$ diff -u <(lsusb -s 3:6 -vvvvv) <(./lsusb -s 3:6 -vvvvv)
--- /dev/fd/63  2021-01-24 16:27:32.776527685 +0100
+++ /dev/fd/62  2021-01-24 16:27:32.780527727 +0100
@@ -158,7 +158,7 @@
         bDescriptorSubtype                  1 (INPUT_HEADER)
         bNumFormats                         2
         wTotalLength                   0x0233
-        bEndPointAddress                  130
+        bEndpointAddress                 0x82  EP 2 IN
         bmInfo                              1
         bTerminalLink                       5
         bStillCaptureMethod                 1
gregkh commented 3 years ago

Thanks for the changes, looks good!