UMP v1.1 spec allows to inform whether the function blocks are static and not dynamically updated. Add a new flag bit to snd_ump_endpoint_info to reflect that attribute, too. The flag is set when a USB MIDI device is still in the old MIDI 2.0 without UMP 1.1 support. Then the driver falls back to GTBs, and they are supposed to be static-only.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -780,6 +780,9 @@ struct snd_rawmidi_status { · 779 unmodified lines | |||
| 780 | }; | 780 | }; |
| 781 | #endif | 781 | #endif |
| 782 | 782 | ||
| 783 | /* UMP EP info flags */ | ||
| 784 | #define SNDRV_UMP_EP_INFO_STATIC_BLOCKS 0x01 | ||
| 785 | |||
| 783 | /* UMP EP Protocol / JRTS capability bits */ | 786 | /* UMP EP Protocol / JRTS capability bits */ |
| 784 | #define SNDRV_UMP_EP_INFO_PROTO_MIDI_MASK 0x0300 | 787 | #define SNDRV_UMP_EP_INFO_PROTO_MIDI_MASK 0x0300 |
| 785 | #define SNDRV_UMP_EP_INFO_PROTO_MIDI1 0x0100 /* MIDI 1.0 */ | 788 | #define SNDRV_UMP_EP_INFO_PROTO_MIDI1 0x0100 /* MIDI 1.0 */ |