]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: usb-audio: Set MIDI1 flag appropriately for GTB MIDI 1.0 entry
authorTakashi Iwai <tiwai@suse.de>
Wed, 7 Aug 2024 09:22:58 +0000 (11:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 7 Aug 2024 09:31:37 +0000 (11:31 +0200)
commitac3a9185bd5f547cb16ef1388e8786ad5a6e8858
tree40c994133185746a3efb41ea18b097cb50c60b4a
parentb28654233f654cc16134b72751bf371c7bf0ce3a
ALSA: usb-audio: Set MIDI1 flag appropriately for GTB MIDI 1.0 entry

When a MIDI 1.0 protocol is specified in a GTB entry while others are
set in MIDI 2.0, it should be seen as a legacy MIDI 1.0 port.  Since
recently we allow drivers to set a flag SNDRV_UMP_BLOCK_IS_MIDI1 to a
FB for that purpose.  This patch tries to set that flag when the
device shows such a configuration.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240807092303.1935-4-tiwai@suse.de
sound/usb/midi2.c