]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: Add Roland Bridge Cast V2
authorFredrik Pettersen <fredrik.fumler@gmail.com>
Sat, 28 Sep 2024 16:00:49 +0000 (18:00 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 15 Oct 2024 13:19:33 +0000 (15:19 +0200)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/445
Signed-off-by: Fredrik Pettersen <fredrik.fumler@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Roland/BridgeCastV2-Hifi.conf [new file with mode: 0644]
ucm2/USB-Audio/Roland/BridgeCastV2.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/Roland/BridgeCastV2-Hifi.conf b/ucm2/USB-Audio/Roland/BridgeCastV2-Hifi.conf
new file mode 100644 (file)
index 0000000..dec5d5c
--- /dev/null
@@ -0,0 +1,170 @@
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+       {
+               SplitPCM {
+                       Name "bc_stereo_out"
+                       Direction Playback
+                       Channels 2
+                       HWChannels 14
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+                       HWChannelPos4 FL
+                       HWChannelPos5 FR
+                       HWChannelPos6 FL
+                       HWChannelPos7 FR
+                       HWChannelPos8 FL
+                       HWChannelPos9 FR
+                       HWChannelPos10 FL
+                       HWChannelPos11 FR
+                       HWChannelPos12 FL
+                       HWChannelPos13 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 14
+               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 14
+               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 14
+               Channels 2
+               Channel0 12
+               Channel1 13
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line4" {
+       Comment "System L/R"
+
+       Value {
+               PlaybackPriority 400
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "bc_stereo_out"
+               Direction Playback
+               HWChannels 14
+               Channels 2
+               Channel0 10
+               Channel1 11
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line5" {
+       Comment "StreamMix"
+
+       Value {
+               CapturePriority 300
+       }
+       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 "Mic"
+
+       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 "SFX"
+
+       Value {
+               CapturePriority 100
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "bc_stereo_in"
+               Direction Capture
+               HWChannels 6
+               Channels 2
+               Channel0 4
+               Channel1 5
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
\ No newline at end of file
diff --git a/ucm2/USB-Audio/Roland/BridgeCastV2.conf b/ucm2/USB-Audio/Roland/BridgeCastV2.conf
new file mode 100644 (file)
index 0000000..96f5202
--- /dev/null
@@ -0,0 +1,6 @@
+Comment "Roland BridgeCast V2 Hifi-Mode"
+
+SectionUseCase."HiFi" {
+       Comment "BridgeCast V2 MultiChannel"
+       File "/USB-Audio/Roland/BridgeCastV2-Hifi.conf"
+}
index 7c8e5627e90bec6486643c3dbacefce52e4ffdce..c2da8b07efd961ad632a41d00c0376934b6a9d2a 100644 (file)
@@ -161,6 +161,15 @@ If.roland-bridgecast {
        True.Define.ProfileName "Roland/BridgeCast"
 }
 
+If.roland-bridgecastv2 {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB0582:031e"
+       }
+       True.Define.ProfileName "Roland/BridgeCastV2"
+}
+
 If.motu-m246 {
        Condition {
                Type RegexMatch