[PATCH 1/4] ALSA: seq: ump: Don't leave the bank LSB in a MIDI 1.0 program change
From: HyeongJun An
Date: Wed Dec 02 2026 - 02:32:38 EST
The cvt_ump_midi2_to_midi1() sends a MIDI 2.0 program change with a
valid bank as two bank select CCs and a program change, all built in the
same packet. The CC data byte is the reserved byte of a MIDI 1.0 program
change, so the program change keeps the bank LSB there:
MIDI 2.0: 0x40c00001 0x05000102 (program 5, bank 1/2)
MIDI 1.0: 0x20b00001, 0x20b02002, 0x20c00502
A UMP MIDI 1.0 client then gets a program change with a non-zero
reserved byte. Clear it before the program change is sent.
Fixes: 8a42886cae30 ("ALSA: seq: Fix missing bank setup between MIDI1/MIDI2 UMP conversion")
Signed-off-by: HyeongJun An <sammiee5311@xxxxxxxxx>
---
sound/core/seq/seq_ump_convert.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/core/seq/seq_ump_convert.c b/sound/core/seq/seq_ump_convert.c
index e76fdb54df175..602afb5a0f285 100644
--- a/sound/core/seq/seq_ump_convert.c
+++ b/sound/core/seq/seq_ump_convert.c
@@ -520,6 +520,7 @@ static int cvt_ump_midi2_to_midi1(struct snd_seq_client *dest,
if (err < 0)
return err;
midi1->note.status = midi2->note.status;
+ midi1->cc.data = 0;
}
midi1->pg.program = midi2->pg.program;
break;
--
2.43.0