]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
GoXLR: Add 'Broadcast Stream Mix 2' to Capture if channels
authorCraig McLure <craig@mclure.net>
Sat, 15 Mar 2025 14:43:57 +0000 (14:43 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sat, 15 Mar 2025 14:48:53 +0000 (15:48 +0100)
Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/444
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/523
Signed-off-by: Craig McLure <craig@mclure.net>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/GoXLR/GoXLR-HiFi.conf

index 9d8af8af2b73267cc4c49b6489f8ec9972b64bbc..6614b00a14d25574ad03659547b384fbfb81eb6d 100644 (file)
@@ -192,3 +192,29 @@ SectionDevice."Line5" {
                ChannelPos1 FR
        }
 }
+
+If.mix2 {
+       Condition {
+               Type String
+               String1 "${var:CaptureChannels}"
+               String2 "25"
+       }
+       True.SectionDevice."Line6" {
+               Comment "Broadcast Stream Mix 2"
+
+               Value {
+                       CapturePriority 200
+               }
+
+               Macro.pcm_split.SplitPCMDevice {
+                       Name "goxlr_stereo_in"
+                       Direction Capture
+                       HWChannels "${var:CaptureChannels}"
+                       Channels 2
+                       Channel0 23
+                       Channel1 24
+                       ChannelPos0 FL
+                       ChannelPos1 FR
+               }
+       }
+}