ALSA: ump: Add info flag bit for static blocks
authorTakashi Iwai <tiwai@suse.de>
Mon, 12 Jun 2023 08:10:53 +0000 (10:10 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Jun 2023 16:22:34 +0000 (18:22 +0200)
commit01dfa8e969dbbc72fc4564e8d61c905c4f3a2352
treef8c3181d29e56c08ac6026a2d58f4495fd830900
parent6a8b4800ae54e9ceb8d017bcfb61d04ff0da90f2
ALSA: ump: Add info flag bit for static blocks

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.

Link: https://lore.kernel.org/r/20230612081054.17200-10-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/uapi/sound/asound.h
sound/core/ump.c
sound/usb/midi2.c