]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: usb-audio: us144mkii: Add MIDI support and mixer controls
authorŠerif Rami <ramiserifpersia@gmail.com>
Thu, 14 Aug 2025 17:22:20 +0000 (19:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Aug 2025 15:53:47 +0000 (17:53 +0200)
commit67afec157fe63d37f0d8f46fbe11a61364718ece
tree1412552cbf2a1e4a69c22b7da6e948d0e86baf7a
parentc1bb0c13e430623c26543baae5bb9ae21139db87
ALSA: usb-audio: us144mkii: Add MIDI support and mixer controls

This patch adds the remaining features to the driver: MIDI I/O and
ALSA mixer controls.

A raw MIDI device is created, supporting one input and one output port.
The implementation handles the device-specific 9-byte packet format for
both sending and receiving MIDI data, using bulk URBs and workqueues for
processing.

ALSA kcontrols are added to the mixer interface, allowing user-space
control over the audio routing matrix (e.g., selecting analog/digital
sources for capture channels, and routing playback streams to different
outputs). A read-only control to display the current sample rate is
also included.

Finally, the stub routing functions are replaced with the full logic
to apply the user-selected mixer settings to the audio streams.

With this commit, the driver is feature-complete.

Signed-off-by: Šerif Rami <ramiserifpersia@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250814172222.9448-6-ramiserifpersia@gmail.com
sound/usb/usx2y/us144mkii.c
sound/usb/usx2y/us144mkii.h
sound/usb/usx2y/us144mkii_controls.c [new file with mode: 0644]
sound/usb/usx2y/us144mkii_midi.c [new file with mode: 0644]
sound/usb/usx2y/us144mkii_pcm.c