]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: Steinberg UR44: support the non-class-compliant mode
authorPetr Mrázek <peterix@gmail.com>
Thu, 15 Oct 2026 00:34:53 +0000 (02:34 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 16 Nov 2026 10:23:38 +0000 (11:23 +0100)
With its [CC MODE] switch off, the UR44 enumerates as 0499:150e and has
six playback channels instead of four: DAW Mix 1, DAW Mix 2 and an
FX Bus that feeds the built-in REV-X reverb (the channel order was
checked with the device's own meters). Match that id, split the
playback PCM from 4 or 6 channels, and add an "FX Bus" device when
the FX Bus exists.

The Direct use case is defined inside the condition, as UCM evaluates
Macro before If blocks.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/882
Signed-off-by: Petr Mrázek <peterix@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Steinberg/UR44-HiFi.conf
ucm2/USB-Audio/Steinberg/UR44.conf
ucm2/USB-Audio/USB-Audio.conf

index 5c1fd7e114162690b9d91302e69d51ec73abbfe6..c505c3e38b5c4155025ffb9dce5346b2b247a485 100644 (file)
@@ -1,18 +1,37 @@
 Include.pcm_split.File "/common/pcm/split.conf"
 
-Macro [
-       {
-               SplitPCM {
-                       Name "steinberg_ur44_stereo_out"
-                       Direction Playback
-                       Channels 2
-                       HWChannels 4
-                       HWChannelPos0 FL
-                       HWChannelPos1 FR
-                       HWChannelPos2 FL
-                       HWChannelPos3 FR
-               }
+# Playback: DAW Mix 1 and Mix 2, and with the [CC MODE] switch off also the FX Bus
+If.out {
+       Condition {
+               Type String
+               String1 "${var:DirectPlaybackChannels}"
+               String2 "6"
        }
+       True.Macro.out.SplitPCM {
+               Name "steinberg_ur44_stereo_out"
+               Direction Playback
+               Channels 2
+               HWChannels 6
+               HWChannelPos0 FL
+               HWChannelPos1 FR
+               HWChannelPos2 FL
+               HWChannelPos3 FR
+               HWChannelPos4 FL
+               HWChannelPos5 FR
+       }
+       False.Macro.out.SplitPCM {
+               Name "steinberg_ur44_stereo_out"
+               Direction Playback
+               Channels 2
+               HWChannels 4
+               HWChannelPos0 FL
+               HWChannelPos1 FR
+               HWChannelPos2 FL
+               HWChannelPos3 FR
+       }
+}
+
+Macro [
        {
                SplitPCM {
                        Name "steinberg_ur44_stereo_in"
@@ -52,7 +71,7 @@ SectionDevice."Line 1" {
        Macro.pcm_split.SplitPCMDevice {
                Name "steinberg_ur44_stereo_out"
                Direction Playback
-               HWChannels 4
+               HWChannels "${var:DirectPlaybackChannels}"
                Channels 2
                Channel0 0
                Channel1 1
@@ -70,7 +89,7 @@ SectionDevice."Line 2" {
        Macro.pcm_split.SplitPCMDevice {
                Name "steinberg_ur44_stereo_out"
                Direction Playback
-               HWChannels 4
+               HWChannels "${var:DirectPlaybackChannels}"
                Channels 2
                Channel0 2
                Channel1 3
@@ -79,6 +98,32 @@ SectionDevice."Line 2" {
        }
 }
 
+# With the [CC MODE] switch off: the FX Bus, a stereo input of the REV-X reverb
+If.fxbus {
+       Condition {
+               Type String
+               String1 "${var:DirectPlaybackChannels}"
+               String2 "6"
+       }
+       True.SectionDevice."Line 13" {
+               Comment "FX Bus"
+
+               Value {
+                       PlaybackPriority 50
+               }
+               Macro.pcm_split.SplitPCMDevice {
+                       Name "steinberg_ur44_stereo_out"
+                       Direction Playback
+                       HWChannels 6
+                       Channels 2
+                       Channel0 4
+                       Channel1 5
+                       ChannelPos0 FL
+                       ChannelPos1 FR
+               }
+       }
+}
+
 SectionDevice."Line 3" {
        Comment "Front 1"
 
index 7d1e40892b31a15a7818481ad10c1c1a3513b1e3..406b402f8d41b315ba266917eda2535fd71db7f5 100644 (file)
@@ -1,5 +1,19 @@
 Comment "Steinberg UR44 USB-Audio"
 
+# Class Compliant mode: DAW 1/2 (Mix 1) and DAW 3/4 (Mix 2). With its [CC MODE] switch off the device has another
+# USB id (0499:150e) and two more playback channels: the FX Bus, a stereo input of the REV-X reverb.
+Define.DirectPlaybackChannels 4
+Define.DirectCaptureChannels 6
+
+If.fxbus {
+       Condition {
+               Type RegexMatch
+               String "${CardComponents}"
+               Regex "USB0499:150e"
+       }
+       True.Define.DirectPlaybackChannels 6
+}
+
 SectionUseCase."HiFi" {
        Comment "Default"
        File "/USB-Audio/Steinberg/UR44-HiFi.conf"
@@ -7,4 +21,7 @@ SectionUseCase."HiFi" {
 
 Include.dhw.File "/common/directm.conf"
 
-Macro.0.DirectUseCase { Id="Direct" PlaybackChannels=4 CaptureChannels=6 }
+If.direct {
+       Condition { Type AlwaysTrue }
+       True.Macro.0.DirectUseCase { Id="Direct" PlaybackChannels="${var:DirectPlaybackChannels}" CaptureChannels="${var:DirectCaptureChannels}" }
+}
index a72487900d1198d0d28d02dd92e0be0b1ee00c74..f0ed57df71dfe11005f985f8a37d94488f557552 100644 (file)
@@ -143,7 +143,8 @@ Macro.steinberg-ur22c.StringMatch   "Id='0499:172f' Profile='Steinberg/UR22C'"
 Macro.steinberg-ur22mkii.StringMatch   "Id='0499:170f' Profile='Steinberg/UR22mkII'"
 Macro.steinberg-ur24c.StringMatch      "Id='0499:174d' Profile='Steinberg/UR24C'"
 Macro.steinberg-ur44c.StringMatch      "Id='0499:1730' Profile='Steinberg/UR44C'"
-Macro.steinberg-ur44.RegexMatch                "Id='0499:17((00)|(04))' Profile='Steinberg/UR44'"
+# 0499:1704 Steinberg UR44 in Class Compliant mode, 0499:150e with its [CC MODE] switch off
+Macro.steinberg-ur44.RegexMatch                "Id='0499:((17((00)|(04)))|(150e))' Profile='Steinberg/UR44'"
 Macro.sony-inzone-h9-h7.StringMatch    "Id='054c:0e53' Profile='Sony/Inzone-H9-H7'"
 
 # 054c:0ce6 Sony Corp. DualSense wireless controller (PS5)