From: HyeongJun An <sammiee5311@gmail.com>
To: Takashi Iwai <tiwai@suse.com>
Cc: Jaroslav Kysela <perex@perex.cz>, Mark Brown <broonie@kernel.org>,
Shuah Khan <shuah@kernel.org>,
linux-sound@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org,
HyeongJun An <sammiee5311@gmail.com>
Subject: [PATCH 1/4] ALSA: seq: ump: Don't leave the bank LSB in a MIDI 1.0 program change
Date: Wed, 2 Dec 2026 16:32:12 +0900 [thread overview]
Message-ID: <20261202073215.2588603-2-sammiee5311@gmail.com> (raw)
In-Reply-To: <20261202073215.2588603-1-sammiee5311@gmail.com>
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@gmail.com>
---
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
next prev parent reply other threads:[~2026-12-02 7:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 7:32 [PATCH 0/4] ALSA: seq: ump: Fix a program change and test more conversions HyeongJun An
2026-12-02 7:32 ` HyeongJun An [this message]
2026-12-02 7:32 ` [PATCH 2/4] selftests/alsa: Test the sequencer UMP bank and program change conversion HyeongJun An
2026-12-02 7:32 ` [PATCH 3/4] selftests/alsa: Test the sequencer UMP SysEx conversion HyeongJun An
2026-12-02 7:32 ` [PATCH 4/4] selftests/alsa: Test the sequencer UMP system message conversion HyeongJun An
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202073215.2588603-2-sammiee5311@gmail.com \
--to=sammiee5311@gmail.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=shuah@kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®