From b627bf6abe50b8bd84e455c6c0989b34b4b5803d Mon Sep 17 00:00:00 2001 From: Craig McLure Date: Sat, 15 Mar 2025 14:43:57 +0000 Subject: [PATCH] GoXLR: Add 'Broadcast Stream Mix 2' to Capture if channels 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 Signed-off-by: Jaroslav Kysela --- ucm2/USB-Audio/GoXLR/GoXLR-HiFi.conf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/ucm2/USB-Audio/GoXLR/GoXLR-HiFi.conf b/ucm2/USB-Audio/GoXLR/GoXLR-HiFi.conf index 9d8af8a..6614b00 100644 --- a/ucm2/USB-Audio/GoXLR/GoXLR-HiFi.conf +++ b/ucm2/USB-Audio/GoXLR/GoXLR-HiFi.conf @@ -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 + } + } +} -- 2.47.1