Control: tags -1 + patch
Hi Debian Kernel Team,
Attached is a patch against `debian/latest` (base commit f54d42aa5429,
`7.4~rc4-1~exp2 UNRELEASED`) enabling `CONFIG_SND_USB_AUDIO_MIDI_V2=y`
in `debian/config/config` (Closes: #1093775) so sound-enabled Debian
kernels support USB MIDI 2.0 and Universal MIDI Packets (UMP) in
`snd-usb-audio` (mainline since Linux v6.5 commit ff49d1df79ae).
Through upstream Kconfig dependencies in `sound/usb/Kconfig`,
`sound/core/Kconfig`, and `sound/core/seq/Kconfig`, setting
`CONFIG_SND_USB_AUDIO_MIDI_V2=y` automatically enables `CONFIG_SND_UMP=m`,
`CONFIG_SND_SEQ_UMP=y`, and `CONFIG_SND_SEQ_UMP_CLIENT=m` while keeping
the `snd_usb_audio.midi2_enable=0` runtime fallback to MIDI 1.0 intact.
(Note: this patch keeps the change minimal at `CONFIG_SND_USB_AUDIO_MIDI_V2=y`
and leaves `CONFIG_SND_UMP_LEGACY_RAWMIDI` unset; ALSA sequencer already
translates transparently between MIDI 1.0 and UMP clients via
`CONFIG_SND_SEQ_UMP=y`, though `CONFIG_SND_UMP_LEGACY_RAWMIDI=y` can also
be added under `sound/core/Kconfig` if `/dev/snd/midiCD` rawmidi nodes
for UMP endpoints are desired.)
The same `debian/config/config` hunk also applies cleanly (`git apply --check`)
to `debian/7.3/forky`, `debian/7.3/trixie-backports`, and `debian/6.12/trixie`.
Verification performed on Linux v7.4-rc4 (b6a9fa34ce41):
*
Before patch (`f54d42aa5429`): `debian/bin/kconfig.py` + `olddefconfig`
for `amd64` leaves `# CONFIG_SND_USB_AUDIO_MIDI_V2 is not set` and
`# CONFIG_SND_SEQ_UMP is not set` (`CONFIG_SND_UMP` absent).
*
After patch (`3b7f7555140a`): `kconfig.py` + `olddefconfig` produces
`CONFIG_SND_USB_AUDIO_MIDI_V2=y`, `CONFIG_SND_UMP=m`,
`CONFIG_SND_SEQ_UMP=y`, and `CONFIG_SND_SEQ_UMP_CLIENT=m` on `amd64`
and `arm64`, while leaving `# CONFIG_SOUND is not set` and zero
`SND_USB_AUDIO`/`SND_UMP` symbols on `cloud-amd64`.
*
`pytest` in the Debian packaging tree: 130 passed.
*
`make W=1 M=sound/core modules` and `make W=1 M=sound/usb modules` on
the generated `amd64` v7.4-rc4 config: 0 compiler warnings; built
`snd-ump.ko`, `snd-seq.ko`, `snd-seq-ump-client.ko`, and
`snd-usb-audio.ko` (with `midi2.o` linked in; `license: GPL`,
`parm: midi2_enable` and `parm: midi2_ump_probe` verified via `modinfo`).
*
Booted v7.4-rc4 under QEMU/KVM (`x86_64`, `panic_on_warn=1`), loaded
`snd-ump`, `snd-seq-ump-client`, and `snd-usb-audio`, verified
`/sys/module/snd_usb_audio/parameters/midi2_enable=Y`, attached a live
virtual USB MIDI 2.0 UMP v1.1 gadget via `dummy_hcd` + `usb_f_midi2`
configfs, confirmed `snd-usb-audio` probed UMP Endpoint/Function Block
topology in `/proc/asound/card1/midi0`, created `/dev/snd/umpC1D0`,
and registered `[Kernel UMP MIDI2]` in `/proc/asound/seq/clients`, and
verified clean module unload/reload (`midi2_enable=0` -> `N` and
default `Y`) with zero dmesg warnings.
Not tested locally: physical USB MIDI 2.0 hardware controllers/interfaces
(verified via `dummy_hcd` + `usb_f_midi2` virtual USB MIDI 2.0 UMP v1.1
loopback in QEMU/KVM).
Best regards,
Mostafa Amin
From 3b7f7555140a1dd471d3b6fae137a0c407e72061 Mon Sep 17 00:00:00 2001
From: Mostafa Amin <[email protected]>
Date: Thu, 26 Nov 2026 18:38:49 -0500
Subject: [PATCH v1] sound/usb: Enable SND_USB_AUDIO_MIDI_V2
Debian kernels currently leave CONFIG_SND_USB_AUDIO_MIDI_V2 unset, which
prevents snd-usb-audio from probing USB MIDI 2.0 interfaces (altset 1)
and leaves the ALSA Universal MIDI Packet (UMP) core and sequencer
support unbuilt. USB MIDI 2.0 devices are forced onto the legacy MIDI 1.0
fallback path with no runtime option to enable UMP.
Enable CONFIG_SND_USB_AUDIO_MIDI_V2=y in the common kernel configuration
(introduced upstream in Linux v6.5 commit ff49d1df79ae). Through Kconfig
dependencies in sound/usb/Kconfig, sound/core/Kconfig, and
sound/core/seq/Kconfig, this automatically enables CONFIG_SND_UMP=m,
CONFIG_SND_SEQ_UMP=y, and CONFIG_SND_SEQ_UMP_CLIENT=m on sound-enabled
flavours while leaving cloud kernels (# CONFIG_SOUND is not set)
unchanged, and preserves the snd_usb_audio.midi2_enable=0 fallback
escape hatch.
Closes: #1093775
---
debian/changelog | 4 ++++
debian/config/config | 1 +
2 files changed, 5 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 92e0dcb..791199e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,14 @@
linux (7.4~rc4-1~exp2) UNRELEASED; urgency=medium
+ [ Uwe Kleine-König ]
* Drop patch
bugfix/all/radeon-amdgpu-firmware-is-required-for-drm-and-kms-on-r600-onward.patch.
That patch is a deviation from mainline and it recently broke.
(Closes: #1153514)
+ [ Mostafa Amin ]
+ * sound/usb: Enable SND_USB_AUDIO_MIDI_V2 (Closes: #1093775)
+
-- Uwe Kleine-König <[email protected]> Tue, 24 Nov 2026 13:25:33 +0100
linux (7.4~rc4-1~exp1) experimental; urgency=medium
diff --git a/debian/config/config b/debian/config/config
index 7fc531f..770972d 100644
--- a/debian/config/config
+++ b/debian/config/config
@@ -7955,6 +7955,7 @@ CONFIG_SND_SPI=y
##
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=m
+CONFIG_SND_USB_AUDIO_MIDI_V2=y
CONFIG_SND_USB_UA101=m
CONFIG_SND_USB_USX2Y=m
CONFIG_SND_USB_CAIAQ=m
base-commit: f54d42aa5429949d6190ccb4072497a3439a41b6
--
2.43.0