]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: UR24C - add Steinberg UR24C (USB0499:174d)
authorKrzysztof Łastowski <krzysztof.lastowski@gmail.com>
Sun, 2 Oct 2022 03:55:42 +0000 (04:55 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 3 Oct 2022 07:56:51 +0000 (09:56 +0200)
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/221
Signed-off-by: Krzysztof Łastowski <krzysztof.lastowski@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Steinberg/UR24C-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/Steinberg/UR24C.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/Steinberg/UR24C-HiFi.conf b/ucm2/USB-Audio/Steinberg/UR24C-HiFi.conf
new file mode 100644 (file)
index 0000000..285b5c4
--- /dev/null
@@ -0,0 +1,94 @@
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+       {
+               SplitPCM {
+                       Name "steinberg_ur24c_stereo_out"
+                       Direction Playback
+                       Channels 2
+                       HWChannels 4
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+               }
+       }
+       {
+               SplitPCM {
+                       Name "steinberg_ur24c_mono_in"
+                       Direction Capture
+                       Channels 1
+                       HWChannels 2
+                       HWChannelPos0 MONO
+                       HWChannelPos1 MONO
+               }
+       }
+]
+
+SectionDevice."Line 1" {
+       Comment "Stereo Line (outputs 1 and 2)"
+
+       Value {
+               PlaybackPriority 200
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "steinberg_ur24c_stereo_out"
+               Direction Playback
+               HWChannels 4
+               Channels 2
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line 2" {
+       Comment "Stereo Line (outputs 3 and 4)"
+
+       Value {
+               PlaybackPriority 100
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "steinberg_ur24c_stereo_out"
+               Direction Playback
+               HWChannels 4
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line 3" {
+       Comment "Mono Line (input 1)"
+
+       Value {
+               CapturePriority 600
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "steinberg_ur24c_mono_in"
+               Direction Capture
+               HWChannels 2
+               Channels 1
+               Channel0 0
+               ChannelPos0 MONO
+       }
+}
+
+SectionDevice."Line 4" {
+       Comment "Mono Line (input 2)"
+
+       Value {
+               CapturePriority 500
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "steinberg_ur24c_mono_in"
+               Direction Capture
+               HWChannels 2
+               Channels 1
+               Channel0 1
+               ChannelPos0 MONO
+       }
+}
diff --git a/ucm2/USB-Audio/Steinberg/UR24C.conf b/ucm2/USB-Audio/Steinberg/UR24C.conf
new file mode 100644 (file)
index 0000000..29be27c
--- /dev/null
@@ -0,0 +1,11 @@
+Comment "Steinberg UR24C USB-Audio"
+
+SectionUseCase."HiFi" {
+       Comment "HiFi"
+       File "/USB-Audio/Steinberg/UR24C-HiFi.conf"
+}
+
+Define.DirectPlaybackChannels 4
+Define.DirectCaptureChannels 2
+
+Include.dhw.File "/common/direct.conf"
index b55270b1d6067a7dbfa0ea169d53e4328c26f99a..5066e79716a1ed206e57660a028d1c0be9cb526b 100644 (file)
@@ -63,6 +63,15 @@ If.gigabyte-aorus-main {
        True.Define.ProfileName "Gigabyte/Aorus-Master-Main-Audio"
 }
 
+If.steinberg-ur24c {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB0499:174d"
+       }
+       True.Define.ProfileName "Steinberg/UR24C"
+}
+
 If.steinberg-ur44 {
        Condition {
                Type String