ALSA: seq: Fix missing bank setup between MIDI1/MIDI2 UMP conversion
authorTakashi Iwai <tiwai@suse.de>
Mon, 27 May 2024 15:18:49 +0000 (17:18 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 May 2024 11:07:08 +0000 (13:07 +0200)
commit8a42886cae307663f3f999846926bd6e64392000
tree7210273294534dea3d104b16ccd70104283d31ed
parent2be46155d792d629e8fe3188c2cde176833afe36
ALSA: seq: Fix missing bank setup between MIDI1/MIDI2 UMP conversion

When a UMP packet is converted between MIDI1 and MIDI2 protocols, the
bank selection may be lost.  The conversion from MIDI1 to MIDI2 needs
the encoding of the bank into UMP_MSG_STATUS_PROGRAM bits, while the
conversion from MIDI2 to MIDI1 needs the extraction from that
instead.

This patch implements the missing bank selection mechanism in those
conversions.

Fixes: e9e02819a98a ("ALSA: seq: Automatic conversion of UMP events")
Link: https://lore.kernel.org/r/20240527151852.29036-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_ump_convert.c