]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: USB-Audio: add Steinberg UR22C (USB0499:172f)
authorCeleste Liu <CoelacanthusHex@gmail.com>
Mon, 30 Sep 2024 11:16:03 +0000 (19:16 +0800)
committerJaroslav Kysela <perex@perex.cz>
Tue, 15 Oct 2024 13:24:57 +0000 (15:24 +0200)
Similar to UR24C and UR44C, but with 2 inputs 2 outputs.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/446
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Steinberg/UR22C-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/Steinberg/UR22C.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/Steinberg/UR22C-HiFi.conf b/ucm2/USB-Audio/Steinberg/UR22C-HiFi.conf
new file mode 100644 (file)
index 0000000..e41c6d5
--- /dev/null
@@ -0,0 +1,55 @@
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+       {
+               SplitPCM {
+                       Name "steinberg_ur22c_mono_in"
+                       Direction Capture
+                       Channels 1
+                       HWChannels 2
+                       HWChannelPos0 MONO
+                       HWChannelPos1 MONO
+               }
+       }
+]
+
+SectionDevice."Line 1" {
+       Comment "Stereo Line (output)"
+
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId}"
+       }
+}
+
+SectionDevice."Line 2" {
+       Comment "Mono Line (input 1)"
+
+       Value {
+               CapturePriority 600
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "steinberg_ur22c_mono_in"
+               Direction Capture
+               HWChannels 2
+               Channels 1
+               Channel0 0
+               ChannelPos0 MONO
+       }
+}
+
+SectionDevice."Line 3" {
+       Comment "Mono Line (input 2)"
+
+       Value {
+               CapturePriority 500
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "steinberg_ur22c_mono_in"
+               Direction Capture
+               HWChannels 2
+               Channels 1
+               Channel0 1
+               ChannelPos0 MONO
+       }
+}
diff --git a/ucm2/USB-Audio/Steinberg/UR22C.conf b/ucm2/USB-Audio/Steinberg/UR22C.conf
new file mode 100644 (file)
index 0000000..f38b744
--- /dev/null
@@ -0,0 +1,11 @@
+Comment "Steinberg UR22C USB-Audio"
+
+SectionUseCase."HiFi" {
+       Comment "HiFi"
+       File "/USB-Audio/Steinberg/UR22C-HiFi.conf"
+}
+
+Define.DirectPlaybackChannels 2
+Define.DirectCaptureChannels 2
+
+Include.dhw.File "/common/direct.conf"
index c2da8b07efd961ad632a41d00c0376934b6a9d2a..b4b1f02e03f112afc08205b771d53e0251b65728 100644 (file)
@@ -113,6 +113,15 @@ If.gigabyte-aorus-main {
        True.Define.ProfileName "Gigabyte/Aorus-Master-Main-Audio"
 }
 
+If.steinberg-ur22c {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB0499:172f"
+       }
+       True.Define.ProfileName "Steinberg/UR22C"
+}
+
 If.steinberg-ur24c {
        Condition {
                Type String