]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: add Roland Quad-Capture support
authorflasheeprom <bjorn.mp@gmail.com>
Tue, 31 Dec 2024 12:39:14 +0000 (13:39 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Mar 2025 17:52:27 +0000 (18:52 +0100)
Add initial Roland Quad-Capture support

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/494
Signed-off-by: Björn Martins Paz <bjornmp.dev@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Roland/Quad-Capture-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/Roland/Quad-Capture.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/Roland/Quad-Capture-HiFi.conf b/ucm2/USB-Audio/Roland/Quad-Capture-HiFi.conf
new file mode 100644 (file)
index 0000000..e15bc79
--- /dev/null
@@ -0,0 +1,104 @@
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+       {
+               SplitPCM {
+                       Name "qc_stereo_out"
+                       Direction Playback
+                       Channels 2
+                       HWChannels 4
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+               }
+       }
+       {
+               SplitPCM {
+                       Name "qc_input"
+                       Direction Capture
+                       Channels 2
+                       HWChannels 6
+                       HWChannelPos0 MONO
+                       HWChannelPos1 MONO
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+                       HWChannelPos4 FL
+                       HWChannelPos5 FR
+               }
+       }
+]
+
+SectionDevice."Line1" {
+       Comment "3-4 (Coaxial)"
+
+       Value {
+               PlaybackPriority 200
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "qc_stereo_out"
+               Direction Playback
+               HWChannels 4
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line2" {
+       Comment "1-2 (Main)"
+
+       Value {
+               PlaybackPriority 100
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "qc_stereo_out"
+               Direction Playback
+               HWChannels 4
+               Channels 2
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line3" {
+       Comment "3-4 (Coaxial)"
+
+       Value {
+               CapturePriority 300
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "qc_input"
+               Direction Capture
+               HWChannels 6
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line4" {
+       Comment "1-2 (1L+2R)"
+
+       Value {
+               CapturePriority 200
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "qc_input"
+               Direction Capture
+               HWChannels 6
+               Channels 2
+               Channel0 0
+               Channel1 1
+               ChannelPos0 MONO
+               ChannelPos1 MONO
+       }
+}
diff --git a/ucm2/USB-Audio/Roland/Quad-Capture.conf b/ucm2/USB-Audio/Roland/Quad-Capture.conf
new file mode 100644 (file)
index 0000000..1830742
--- /dev/null
@@ -0,0 +1,6 @@
+Comment "Roland Quad-Capture"
+
+SectionUseCase."HiFi" {
+       Comment "Roland Quand-Capture"
+       File "/USB-Audio/Roland/Quad-Capture-HiFi.conf"
+}
index 8c4a509463874b398dc4dfbb8969b0dc1fd35faa..d2f61e24e32dbc982260c4876d9f7009f175b372 100644 (file)
@@ -168,6 +168,15 @@ If.boss-katana {
        True.Define.ProfileName "BOSS/Katana"
 }
 
+If.roland-quadcapture {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB0582:012f"
+       }
+       True.Define.ProfileName "Roland/Quad-Capture"
+}
+
 If.roland-bridgecast {
        Condition {
                Type String