]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: Add Minifuse 4
authorbernsnf <127335726+bernsnf@users.noreply.github.com>
Wed, 8 Mar 2023 17:34:58 +0000 (18:34 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 17 Apr 2023 08:26:12 +0000 (10:26 +0200)
I created a separate file because of the additional input-Pairs and
output-Pairs result in different loopback channels.

Without the usecase outputs threated as surround channels.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/287
From: bernsnf <github>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Arturia/Minifuse-4-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/Arturia/Minifuse-4.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/Arturia/Minifuse-4-HiFi.conf b/ucm2/USB-Audio/Arturia/Minifuse-4-HiFi.conf
new file mode 100644 (file)
index 0000000..2fc03ba
--- /dev/null
@@ -0,0 +1,180 @@
+Include.pcm_split.File "/common/pcm/split.conf"
+Macro [
+       {
+               SplitPCM {
+                       Name "minifuse4_stereo_out"
+                       Direction Playback
+                       Channels 2
+                       HWChannels 6
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+                       HWChannelPos4 FL
+                       HWChannelPos5 FR
+               }
+       }
+       {
+               SplitPCM {
+                       Name "minifuse4_stereo_in"
+                       Direction Capture
+                       Channels 2
+                       HWChannels 6
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+                       HWChannelPos4 FL
+                       HWChannelPos5 FR
+               }
+       }
+       {
+               SplitPCM {
+                       Name "minifuse4_mono_in"
+                       Direction Capture
+                       Channels 1
+                       HWChannels 6
+                       HWChannelPos0 MONO
+                       HWChannelPos1 MONO
+                       HWChannelPos2 MONO
+                       HWChannelPos3 MONO
+                       HWChannelPos4 MONO
+                       HWChannelPos5 MONO
+               }
+       }
+]
+
+SectionDevice."Line1" {
+       Comment "Main Output 1L/2R"
+
+       Value {
+               PlaybackPriority 100
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "minifuse4_stereo_out"
+               Direction Playback
+               HWChannels 6
+               Channels 2
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+
+SectionDevice."Line2" {
+       Comment "Stereo Output 3/4"
+
+       Value {
+               PlaybackPriority 300
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "minifuse4_stereo_out"
+               Direction Playback
+               HWChannels 6
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+
+SectionDevice."Line3" {
+       Comment "Loopback L/R"
+
+       Value {
+               PlaybackPriority 200
+               CapturePriority 200
+       }
+       Macro.pcm_split1.SplitPCMDevice {
+               Name "minifuse4_stereo_out"
+               Direction Playback
+               HWChannels 6
+               Channels 2
+               Channel0 4
+               Channel1 5
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+       Macro.pcm_split2.SplitPCMDevice {
+               Name "minifuse4_stereo_in"
+               Direction Capture
+               HWChannels 6
+               Channels 2
+               Channel0 4
+               Channel1 5
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line4" {
+       Comment "Stereo Input 1+2 L/R"
+
+       Value {
+               CapturePriority 100
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "minifuse4_stereo_in"
+               Direction Capture
+               HWChannels 6
+               Channels 2
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line5" {
+       Comment "Stereo Input 3+4 L/R"
+
+       Value {
+               CapturePriority 200
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "minifuse4_stereo_in"
+               Direction Capture
+               HWChannels 6
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Mic1" {
+       Comment "Mic/Line/Inst 1 (L)"
+
+       Value {
+               CapturePriority 400
+       }
+       Macro.pcm_split2.SplitPCMDevice {
+               Name "minifuse4_mono_in"
+               Direction Capture
+               HWChannels 6
+               Channels 1
+               Channel0 0
+               ChannelPos0 MONO
+       }
+}
+
+SectionDevice."Mic2" {
+       Comment "Mic/Line/Inst 2 (R)"
+
+       Value {
+               CapturePriority 300
+       }
+       Macro.pcm_split2.SplitPCMDevice {
+               Name "minifuse4_mono_in"
+               Direction Capture
+               HWChannels 6
+               Channels 1
+               Channel0 1
+               ChannelPos0 MONO
+       }
+}
diff --git a/ucm2/USB-Audio/Arturia/Minifuse-4.conf b/ucm2/USB-Audio/Arturia/Minifuse-4.conf
new file mode 100644 (file)
index 0000000..fc5a1da
--- /dev/null
@@ -0,0 +1,11 @@
+Comment "Arturia Minifuse 4"
+
+SectionUseCase."HiFi" {
+       Comment "Default Alsa Profile"
+       File "/USB-Audio/Arturia/Minifuse-4-HiFi.conf"
+}
+
+Define.DirectPlaybackChannels 6
+Define.DirectCaptureChannels 6
+
+Include.dhw.File "/common/direct.conf"
index e70b34eafb9731321f2c71371d8eaea6f4b7b236..efaddc0697ae3a0e765240bfa34ed9b22e9fab8d 100644 (file)
@@ -278,6 +278,15 @@ If.kontrolz1 {
        True.Define.ProfileName "NativeInstruments/Traktor-Kontrol-Z1"
 }
 
+If.minifuse4 {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Regex "USB1c75:af70"
+       }
+       True.Define.ProfileName "Arturia/Minifuse-4"
+}
+
 If.minifuse12 {
        Condition {
                Type RegexMatch