[PATCH 0/2] ALSA: seq: ump: Convert MIDI 2.0 RPN and NRPN for MIDI 1.0 clients

HyeongJun An posted 2 patches 23 hours ago
sound/core/seq/seq_ump_convert.c            | 36 +++++++++++++++++++++
tools/testing/selftests/alsa/seq-ump-test.c | 20 ++++++++++++
2 files changed, 56 insertions(+)
[PATCH 0/2] ALSA: seq: ump: Convert MIDI 2.0 RPN and NRPN for MIDI 1.0 clients
Posted by HyeongJun An 23 hours ago
A UMP MIDI 1.0 client gets nothing when a UMP MIDI 2.0 client sends an
RPN or NRPN. Patch 1 converts them to CCs the way the core converter
does, and patch 2 adds a test.

A related question. In the other direction, CC 101, 100, 6 and 38 from
a UMP MIDI 1.0 client reach a MIDI 2.0 client as four MIDI 2.0 CC
messages. The same CCs from a legacy client are combined into one RPN
message by cc_ev_to_ump_midi2(). Should cvt_ump_midi1_to_midi2() do
that too? I can send it if you want it.

Tested in QEMU (x86_64) on sound/for-next 1afd6b7547b2. seq-ump-test
passes 28 of 29 without patch 1, where the new test gets no packets,
and 29 of 29 with it.

Prepared with Claude Code (Claude Opus 5.5).

HyeongJun An (2):
  ALSA: seq: ump: Don't drop MIDI 2.0 RPN and NRPN for MIDI 1.0 clients
  selftests/alsa: Test the sequencer UMP MIDI 2.0 RPN conversion

 sound/core/seq/seq_ump_convert.c            | 36 +++++++++++++++++++++
 tools/testing/selftests/alsa/seq-ump-test.c | 20 ++++++++++++
 2 files changed, 56 insertions(+)

-- 
2.43.0
Re: [PATCH 0/2] ALSA: seq: ump: Convert MIDI 2.0 RPN and NRPN for MIDI 1.0 clients
Posted by Takashi Iwai an hour ago
On Sun, 22 Nov 2026 11:36:09 +0100,
HyeongJun An wrote:
> 
> A UMP MIDI 1.0 client gets nothing when a UMP MIDI 2.0 client sends an
> RPN or NRPN. Patch 1 converts them to CCs the way the core converter
> does, and patch 2 adds a test.
> 
> A related question. In the other direction, CC 101, 100, 6 and 38 from
> a UMP MIDI 1.0 client reach a MIDI 2.0 client as four MIDI 2.0 CC
> messages. The same CCs from a legacy client are combined into one RPN
> message by cc_ev_to_ump_midi2(). Should cvt_ump_midi1_to_midi2() do
> that too? I can send it if you want it.
> 
> Tested in QEMU (x86_64) on sound/for-next 1afd6b7547b2. seq-ump-test
> passes 28 of 29 without patch 1, where the new test gets no packets,
> and 29 of 29 with it.
> 
> Prepared with Claude Code (Claude Opus 5.5).
> 
> HyeongJun An (2):
>   ALSA: seq: ump: Don't drop MIDI 2.0 RPN and NRPN for MIDI 1.0 clients
>   selftests/alsa: Test the sequencer UMP MIDI 2.0 RPN conversion

Applied both patches to for-next branch.  Thanks.


Takashi