From e95615eb3767a31d41aa6420ab41c72894954eaa Mon Sep 17 00:00:00 2001 From: Marius Renner Date: Sun, 19 Oct 2025 18:39:29 +0200 Subject: [PATCH] ucm2: Add support for Steinberg UR22mkII This device is basically an earlier model of the UR22C that already has a configuration. The main functional difference is that the UR22mkII only has 2 hardware channels for the inputs. I have also changed the names/comments in the config to mostly match the text on the device (Input 1/Input 2). This configuration was tested with a Steinberg UR22mkII with firmware version 1.04. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/626 Signed-off-by: Marius Renner Signed-off-by: Jaroslav Kysela --- ucm2/USB-Audio/Steinberg/UR22mkII-HiFi.conf | 55 +++++++++++++++++++++ ucm2/USB-Audio/Steinberg/UR22mkII.conf | 11 +++++ ucm2/USB-Audio/USB-Audio.conf | 9 ++++ 3 files changed, 75 insertions(+) create mode 100644 ucm2/USB-Audio/Steinberg/UR22mkII-HiFi.conf create mode 100644 ucm2/USB-Audio/Steinberg/UR22mkII.conf diff --git a/ucm2/USB-Audio/Steinberg/UR22mkII-HiFi.conf b/ucm2/USB-Audio/Steinberg/UR22mkII-HiFi.conf new file mode 100644 index 0000000..72cebc9 --- /dev/null +++ b/ucm2/USB-Audio/Steinberg/UR22mkII-HiFi.conf @@ -0,0 +1,55 @@ +Include.pcm_split.File "/common/pcm/split.conf" + +Macro [ + { + SplitPCM { + Name "steinberg_ur22mkii_mono_in" + Direction Capture + Channels 1 + HWChannels 2 + HWChannelPos0 MONO + HWChannelPos1 MONO + } + } +] + +SectionDevice."Line 1" { + Comment "Stereo Output" + + Value { + PlaybackPriority 200 + PlaybackPCM "hw:${CardId}" + } +} + +SectionDevice."Input 1" { + Comment "Input 1" + + Value { + CapturePriority 600 + } + Macro.pcm_split.SplitPCMDevice { + Name "steinberg_ur22mkii_mono_in" + Direction Capture + HWChannels 2 + Channels 1 + Channel0 0 + ChannelPos0 MONO + } +} + +SectionDevice."Input 2" { + Comment "Input 2" + + Value { + CapturePriority 500 + } + Macro.pcm_split.SplitPCMDevice { + Name "steinberg_ur22mkii_mono_in" + Direction Capture + HWChannels 2 + Channels 1 + Channel0 1 + ChannelPos0 MONO + } +} diff --git a/ucm2/USB-Audio/Steinberg/UR22mkII.conf b/ucm2/USB-Audio/Steinberg/UR22mkII.conf new file mode 100644 index 0000000..0e798cb --- /dev/null +++ b/ucm2/USB-Audio/Steinberg/UR22mkII.conf @@ -0,0 +1,11 @@ +Comment "Steinberg UR22mkII USB-Audio" + +SectionUseCase."HiFi" { + Comment "HiFi" + File "/USB-Audio/Steinberg/UR22mkII-HiFi.conf" +} + +Define.DirectPlaybackChannels 2 +Define.DirectCaptureChannels 2 + +Include.dhw.File "/common/direct.conf" diff --git a/ucm2/USB-Audio/USB-Audio.conf b/ucm2/USB-Audio/USB-Audio.conf index de32681..6f662ee 100644 --- a/ucm2/USB-Audio/USB-Audio.conf +++ b/ucm2/USB-Audio/USB-Audio.conf @@ -140,6 +140,15 @@ If.steinberg-ur22c { True.Define.ProfileName "Steinberg/UR22C" } +If.steinberg-ur22mkii { + Condition { + Type String + Haystack "${CardComponents}" + Needle "USB0499:170f" + } + True.Define.ProfileName "Steinberg/UR22mkII" +} + If.steinberg-ur24c { Condition { Type String -- 2.47.3