---
lsusb.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/lsusb.c b/lsusb.c
index c9d0d74..ddc19e0 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -75,6 +75,7 @@
#define USB_DC_PLATFORM0x05
#define USB_DC_SUPERSPEEDPLUS 0x0a
#define USB_DC_BILLBOARD 0x0d
This gives us more consistency in handling of incorrect descriptor
buffer lengths, and improves whitespace/alignment consistency.
---
Makefile.am | 2 +
lsusb.c | 779 +---
2 files changed, 63 insertions(+), 718 deletions(-)
diff --git
support
for UAC3 is added. Finally, support for the USB3 BOS Configuration
Summary Descriptor is added.
This was previously opened as a github pull request here:
https://github.com/gregkh/usbutils/pull/61
Michael Drake (8):
lsusb: Split subtype mapping out of AudioControl interface handling
UAC1 and UAC2 have different different meanings for the same subtype
value. This splits the subtype mapping out.
---
lsusb.c | 100 ++--
1 file changed, 79 insertions(+), 21 deletions(-)
diff --git a/lsusb.c b/lsusb.c
index f611f2e..c35
---
desc-defs.c | 16
desc-defs.h | 3 +++
2 files changed, 19 insertions(+)
diff --git a/desc-defs.c b/desc-defs.c
index 3b5ea1e..885e3fa 100644
--- a/desc-defs.c
+++ b/desc-defs.c
@@ -892,3 +892,19 @@ const struct desc * const
desc_audio_as_isochronous_audio_data_endpoint[3]
@@
+/*/
+
+/*
+ * desc-dump.c -- USB descriptor dumping
+ *
+ * Copyright (C) 2017 Michael Drake
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU
(C) 2017 Michael Drake
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later
---
lsusb.c | 52 ++--
1 file changed, 34 insertions(+), 18 deletions(-)
diff --git a/lsusb.c b/lsusb.c
index ac6e061..c9d0d74 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -106,6 +106,11 @@
#define USB_AUDIO_CLASS_2 0x20
#endif
+/* USB DCD
---
desc-defs.c | 277
desc-defs.h | 3 +
desc-dump.c | 5 ++
3 files changed, 270 insertions(+), 15 deletions(-)
diff --git a/desc-defs.c b/desc-defs.c
index 6bc558e..3b5ea1e 100644
--- a/desc-defs.c
+++ b/desc-defs.c
@@ -61,6 +61,
On 05/12/17 16:31, Greg KH wrote:
On Tue, Dec 05, 2017 at 04:14:24PM +, Michael Drake wrote:
UAC1 and UAC2 have different different meanings for the same subtype
value. This splits the subtype mapping out.
---
Minor nit, can you sign-off on your patches like kernel patches have?
That way
On 05/12/17 16:37, Greg KH wrote:
On Tue, Dec 05, 2017 at 04:14:25PM +, Michael Drake wrote:
These descriptor definitions descibe how raw descriptor data
should be interpreted.
---
desc-defs.c | 647
desc-defs.h | 153
On 05/12/17 16:38, Greg KH wrote:
On Tue, Dec 05, 2017 at 04:14:26PM +, Michael Drake wrote:
This adds a new way of dumping descriptors. It takes the descriptor
data to be dumped, and a descriptor definition as input.
The descriptor definition takes the form of a NULL terminated array
On 05/12/17 16:39, Greg KH wrote:
On Tue, Dec 05, 2017 at 04:14:28PM +, Michael Drake wrote:
---
desc-defs.c | 277
desc-defs.h | 3 +
desc-dump.c | 5 ++
3 files changed, 270 insertions(+), 15 deletions(-)
We need
On 05/12/17 16:32, Greg KH wrote:
On Tue, Dec 05, 2017 at 04:14:23PM +, Michael Drake wrote:
This adds a new way of dumping descriptors, which splits the knowledge
of how to interpret descriptor data from the actual dumping. This has
two advantages:
1. It is easy to add support for new
around #include "config.h"
- Fixed use of magic numbers in wFormatTag snowflake renderer.
Michael Drake (8):
lsusb: Split subtype mapping out of AudioControl interface handling.
lsusb: Add declarative definitions for UAC1 and UAC2 descriptors.
lsusb: Add code to dump descriptor
UAC1 and UAC2 have different different meanings for the same subtype
value. This splits the subtype mapping out.
Signed-off-by: Michael Drake
---
lsusb.c | 128 +++-
1 file changed, 94 insertions(+), 34 deletions(-)
diff --git a
Make lsusb display verbose descriptor output for USB Audio
Devide Class 3 devices. The descriptors have changed for
version 3 of the protocol.
Signed-off-by: Michael Drake
---
lsusb.c | 52 ++--
1 file changed, 34 insertions(+), 18 deletions
Add definition of the BOS configuration summary descriptor, as
specified by the USB 3 standard, to the descriptor definitions
for lsusb.
Signed-off-by: Michael Drake
---
desc-defs.c | 15 +++
desc-defs.h | 3 +++
2 files changed, 18 insertions(+)
diff --git a/desc-defs.c b/desc
These descriptor definitions descibe how raw descriptor data
should be interpreted.
Signed-off-by: Michael Drake
---
desc-defs.c | 338
desc-defs.h | 3 +
desc-dump.c | 5 +
3 files changed, 303 insertions(+), 43 deletions
its
handling of insufficient descriptor data buffer, and junk data
at the end of a descriptor.
2. It is easy to add support for new descriptors, since they are now
simple definitions that resemble the tables in the USB specifications.
Signed-off-by: Michael Drake
---
desc-dump.c | 541
These descriptor definitions descibe how raw descriptor data
should be interpreted.
Signed-off-by: Michael Drake
---
desc-defs.c | 728
desc-defs.h | 153 +
2 files changed, 881 insertions(+)
create mode 100644 desc
This gives us more consistency in handling of incorrect descriptor
buffer lengths, and improves whitespace/alignment consistency.
Signed-off-by: Michael Drake
---
Makefile.am | 2 +
lsusb.c | 751
2 files changed, 50 insertions
Add support for dumping the configuration summary device capability
descriptor to the verbose output of lsusb.
Signed-off-by: Michael Drake
---
lsusb.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/lsusb.c b/lsusb.c
index e3eb423..c7a237e 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -75,6
The get_audioterminal_string() function is now unused.
Signed-off-by: Michael Drake
---
lsusb.c | 12
1 file changed, 12 deletions(-)
diff --git a/lsusb.c b/lsusb.c
index a1b7f8d..1650016 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -217,18 +217,6 @@ static int get_protocol_string(char
This series is to fix some warnings reported by Greg.
Michael Drake (2):
lsusb: Squash Wpointer-compare warning.
lsusb: Remove unused function.
desc-dump.c | 7 +++
lsusb.c | 12
2 files changed, 3 insertions(+), 16 deletions(-)
--
2.11.0
--
To unsubscribe from this
lacing the ineffectual/broken one.
Signed-off-by: Michael Drake
---
desc-dump.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/desc-dump.c b/desc-dump.c
index 5c8e8ae..0df0e00 100644
--- a/desc-dump.c
+++ b/desc-dump.c
@@ -64,17 +64,16 @@ static void desc_bmco
On 07/12/17 15:00, Greg KH wrote:
On Thu, Dec 07, 2017 at 10:26:21AM +, Michael Drake wrote:
This adds a new way of dumping descriptors, which splits the knowledge
of how to interpret descriptor data from the actual dumping. This has
two advantages:
1. It is easy to add support for new
On 07/12/17 15:16, Greg KH wrote:
On Thu, Dec 07, 2017 at 04:01:23PM +0100, Greg KH wrote:
On Thu, Dec 07, 2017 at 04:00:36PM +0100, Greg KH wrote:
On Thu, Dec 07, 2017 at 10:26:21AM +, Michael Drake wrote:
This adds a new way of dumping descriptors, which splits the knowledge
of how to
n get the entry size from a
referenced field.
Signed-off-by: Michael Drake
---
desc-dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/desc-dump.c b/desc-dump.c
index 0df0e00..0adf39d 100644
--- a/desc-dump.c
+++ b/desc-dump.c
@@ -423,7 +423,7 @@ static unsigne
This fixes the likely cause of a crash found by Greg.
Michael Drake (1):
lsusb: Fix array entry count for variable sized entries.
desc-dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" i
On 07/12/17 17:26, Greg KH wrote:
On Thu, Dec 07, 2017 at 05:14:10PM +, Michael Drake wrote:
On 07/12/17 15:16, Greg KH wrote:
On Thu, Dec 07, 2017 at 04:01:23PM +0100, Greg KH wrote:
Oops, I should have tested the code, it now crashes for me with the
following error:
Floating
On 07/12/17 20:02, Greg KH wrote:
On Thu, Dec 07, 2017 at 07:18:39PM +, Michael Drake wrote:
This fixes a divide by zero which happened when an array,
without an explicit entry count (ultimately calculated from
the value in the descriptor data's bLength field) was used
on field w
On 07/12/17 20:04, Greg KH wrote:
On Thu, Dec 07, 2017 at 07:24:35PM +, Michael Drake wrote:
On 07/12/17 17:26, Greg KH wrote:
On Thu, Dec 07, 2017 at 05:14:10PM +, Michael Drake wrote:
On 07/12/17 15:16, Greg KH wrote:
On Thu, Dec 07, 2017 at 04:01:23PM +0100, Greg KH wrote:
Oops
On 08/12/17 14:27, Greg KH wrote:
On Fri, Dec 08, 2017 at 10:30:43AM +, Michael Drake wrote:
On 07/12/17 20:04, Greg KH wrote:
--- lsusb-v.orig2017-12-07 21:01:26.153185002 +0100
+++ lsusb-v.new 2017-12-07 21:01:32.806517978 +0100
@@ -1110,9 +1110,9 @@
bDescriptorType
34 matches
Mail list logo