MIDI 2.0 endpoint descriptors contain information for terminal blocks instead of the jacks in MIDI 1.0 endpoints.
MIDI 2.0 descriptor adds an alternate setting to the interface descriptor 1 of MIDI 1.0
Since both types of endpoint descriptors need to be supported in lsusb, this code change determines the endpoint descriptor using the type in the endpoint descriptor and outputs the names of the fields accordingly.
MIDI 2.0 endpoint descriptors contain information for terminal blocks instead of the jacks in MIDI 1.0 endpoints. MIDI 2.0 descriptor adds an alternate setting to the interface descriptor 1 of MIDI 1.0 Since both types of endpoint descriptors need to be supported in lsusb, this code change determines the endpoint descriptor using the type in the endpoint descriptor and outputs the names of the fields accordingly.