Add the ability to parse and print MPEG2-TS format descriptor (0x0a). Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> --- lsusb.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/lsusb.c b/lsusb.c index 5dbcd42..20c0cca 100644 --- a/lsusb.c +++ b/lsusb.c @@ -2495,6 +2495,22 @@ static void dump_videostreaming_interface(unsigned char *buf) dump_junk(buf, " ", 11); break; + case 0x0a: /* FORMAT_MPEG2TS */ + printf("(FORMAT_MPEG2TS)\n"); + len = buf[0] < 23 ? 7 : 23; + if (buf[0] < len) + printf(" Warning: Descriptor too short\n"); + printf(" bFormatIndex %5u\n" + " bDataOffset %5u\n" + " bPacketLength %5u\n" + " bStrideLength %5u\n", + buf[3], buf[4], buf[5], buf[6]); + if (len > 7) + printf(" guidStrideFormat %s\n", + get_guid(&buf[7])); + dump_junk(buf, " ", len); + break; + case 0x0d: /* COLORFORMAT */ printf("(COLORFORMAT)\n"); if (buf[0] < 6) -- 1.7.2.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html