From 27ee7e6ae90aed8fb483233503f6a6d21c7b0d6a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20Dom=C3=ADnguez?= Date: Sat, 6 Jul 2024 20:55:22 +0200 Subject: [PATCH] USB-Audio: Add 0582:01d8 BOSS Katana HEAD MkII support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/430 Signed-off-by: Alejandro Domínguez Signed-off-by: Jaroslav Kysela --- ucm2/USB-Audio/BOSS/Katana-HiFi.conf | 100 +++++++++++++++++++++++++++ ucm2/USB-Audio/BOSS/Katana.conf | 6 ++ ucm2/USB-Audio/USB-Audio.conf | 12 ++++ 3 files changed, 118 insertions(+) create mode 100644 ucm2/USB-Audio/BOSS/Katana-HiFi.conf create mode 100644 ucm2/USB-Audio/BOSS/Katana.conf diff --git a/ucm2/USB-Audio/BOSS/Katana-HiFi.conf b/ucm2/USB-Audio/BOSS/Katana-HiFi.conf new file mode 100644 index 0000000..a0da73c --- /dev/null +++ b/ucm2/USB-Audio/BOSS/Katana-HiFi.conf @@ -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 index 0000000..fd6d3bd --- /dev/null +++ b/ucm2/USB-Audio/BOSS/Katana.conf @@ -0,0 +1,6 @@ +Comment "BOSS Katana USB-Audio" + +SectionUseCase."HiFi" { + File "/USB-Audio/BOSS/Katana-HiFi.conf" + Comment "Default" +} diff --git a/ucm2/USB-Audio/USB-Audio.conf b/ucm2/USB-Audio/USB-Audio.conf index 0e12d2d..16316da 100644 --- a/ucm2/USB-Audio/USB-Audio.conf +++ b/ucm2/USB-Audio/USB-Audio.conf @@ -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 -- 2.47.1