From: bernsnf <127335726+bernsnf@users.noreply.github.com> Date: Wed, 8 Mar 2023 17:34:58 +0000 (+0100) Subject: USB-Audio: Add Minifuse 4 X-Git-Tag: v1.2.9~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=810367c244bf2d3dc0c53587742c8ca4205ae067;p=alsa-ucm-conf.git USB-Audio: Add Minifuse 4 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 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/USB-Audio/Arturia/Minifuse-4-HiFi.conf b/ucm2/USB-Audio/Arturia/Minifuse-4-HiFi.conf new file mode 100644 index 0000000..2fc03ba --- /dev/null +++ b/ucm2/USB-Audio/Arturia/Minifuse-4-HiFi.conf @@ -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 index 0000000..fc5a1da --- /dev/null +++ b/ucm2/USB-Audio/Arturia/Minifuse-4.conf @@ -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" diff --git a/ucm2/USB-Audio/USB-Audio.conf b/ucm2/USB-Audio/USB-Audio.conf index e70b34e..efaddc0 100644 --- a/ucm2/USB-Audio/USB-Audio.conf +++ b/ucm2/USB-Audio/USB-Audio.conf @@ -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