]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB: Adding UCM2 configuration for Roland/BridgeCast
authorSebastian Mangelsen <sebastian.mangelsen@plejd.com>
Sun, 26 Mar 2023 22:13:26 +0000 (00:13 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 17 Apr 2023 08:12:57 +0000 (10:12 +0200)
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/297
From: Sebastian Mangelsen <sebastian.mangelsen@plejd.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Roland/BridgeCast-Hifi.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/Roland/BridgeCast-Hifi.conf b/ucm2/USB-Audio/Roland/BridgeCast-Hifi.conf
new file mode 100644 (file)
index 0000000..e708a18
--- /dev/null
@@ -0,0 +1,166 @@
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+       {
+               SplitPCM {
+                       Name "bc_stereo_out"
+                       Direction Playback
+                       Channels 2
+                       HWChannels 8
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+                       HWChannelPos4 FL
+                       HWChannelPos5 FR
+                       HWChannelPos6 FL
+                       HWChannelPos7 FR
+               }
+       }
+       {
+               SplitPCM {
+                       Name "bc_stereo_in"
+                       Direction Capture
+                       Channels 2
+                       HWChannels 6
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+                       HWChannelPos4 FL
+                       HWChannelPos5 FR
+               }
+       }
+]
+
+SectionDevice."Line1" {
+       Comment "Chat L/R"
+
+       Value {
+               PlaybackPriority 100
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "bc_stereo_out"
+               Direction Playback
+               HWChannels 8
+               Channels 2
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line2" {
+       Comment "Game L/R"
+
+       Value {
+               PlaybackPriority 200
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "bc_stereo_out"
+               Direction Playback
+               HWChannels 8
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line3" {
+       Comment "Music L/R"
+
+       Value {
+               PlaybackPriority 300
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "bc_stereo_out"
+               Direction Playback
+               HWChannels 8
+               Channels 2
+               Channel0 4
+               Channel1 5
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line4" {
+       Comment "System L/R"
+
+       Value {
+               PlaybackPriority 400
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "bc_stereo_out"
+               Direction Playback
+               HWChannels 8
+               Channels 2
+               Channel0 6
+               Channel1 7
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line5" {
+       Comment "Mic"
+
+       Value {
+               CapturePriority 100
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "bc_stereo_in"
+               Direction Capture
+               HWChannels 6
+               Channels 2
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line6" {
+       Comment "StreamMix"
+
+       Value {
+               CapturePriority 200
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "bc_stereo_in"
+               Direction Capture
+               HWChannels 6
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line7" {
+       Comment "Unknown"
+
+       Value {
+               CapturePriority 300
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "bc_stereo_in"
+               Direction Capture
+               HWChannels 6
+               Channels 2
+               Channel0 4
+               Channel1 5
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+
index f124ca8cf9bcc9599ce61088aae1fff74a9f8e0b..b4fbb6c43b6aafb00d3d0fb4d33c31cd990660db 100644 (file)
@@ -109,6 +109,15 @@ If.steinberg-ur44 {
        True.Define.ProfileName "Steinberg/UR44"
 }
 
+If.roland-bridgecast {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB0582:02b7"
+       }
+       True.Define.ProfileName "Roland/BridgeCast"
+}
+
 If.motu-m24 {
        Condition {
                Type RegexMatch