]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: Add 0582:01d8 BOSS Katana HEAD MkII support
authorAlejandro Domínguez <adomu4@gmail.com>
Sat, 6 Jul 2024 18:55:22 +0000 (20:55 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 2 Aug 2024 13:50:02 +0000 (15:50 +0200)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/430
Signed-off-by: Alejandro Domínguez <adomu4@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/BOSS/Katana-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/BOSS/Katana.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/BOSS/Katana-HiFi.conf b/ucm2/USB-Audio/BOSS/Katana-HiFi.conf
new file mode 100644 (file)
index 0000000..a0da73c
--- /dev/null
@@ -0,0 +1,100 @@
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+       {
+               SplitPCM {
+                       Name "katana_stereo_out"
+                       Direction Playback
+                       Channels 2
+                       HWChannels 4
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+               }
+       }
+       {
+               SplitPCM {
+                       Name "katana_stereo_in"
+                       Direction Capture
+                       Channels 2
+                       HWChannels 4
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+               }
+       }
+]
+
+SectionDevice."PrimaryOut" {
+       Comment "Music Playback"
+
+       Value {
+               PlaybackPriority 200
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "katana_stereo_out"
+               Direction Playback
+               Channels 2
+               HWChannels 4
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."SecondaryOut" {
+       Comment "DI Playback"
+
+       Value {
+               PlaybackPriority 100
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "katana_stereo_out"
+               Direction Playback
+               Channels 2
+               HWChannels 4
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."PrimaryIn" {
+       Comment "Processed Signal"
+
+       Value {
+               CapturePriority 200
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "katana_stereo_in"
+               Direction Capture
+               Channels 2
+               HWChannels 4
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."SecondaryIn" {
+       Comment "DI Capture"
+
+       Value {
+               CapturePriority 100
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "katana_stereo_in"
+               Direction Capture
+               Channels 2
+               HWChannels 4
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
diff --git a/ucm2/USB-Audio/BOSS/Katana.conf b/ucm2/USB-Audio/BOSS/Katana.conf
new file mode 100644 (file)
index 0000000..fd6d3bd
--- /dev/null
@@ -0,0 +1,6 @@
+Comment "BOSS Katana USB-Audio"
+
+SectionUseCase."HiFi" {
+    File "/USB-Audio/BOSS/Katana-HiFi.conf"
+    Comment "Default"
+}
index 0e12d2d48a09566cabc5f8770c492ac57390ae1f..16316dab9c070dc1a6373954ed0e9dfec1ad74a3 100644 (file)
@@ -140,6 +140,18 @@ If.sony-inzone-h9-h7 {
        True.Define.ProfileName "Sony/Inzone-H9-H7"
 }
 
+If.boss-katana {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               # 0582:01d8 BOSS Katana HEAD MkII
+               # Might work for other models
+               # and generations from the same series
+               Needle "USB0582:01d8"
+       }
+       True.Define.ProfileName "BOSS/Katana"
+}
+
 If.roland-bridgecast {
        Condition {
                Type String