]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
Add a config for the Allen & Heath Zedi 10 mixer.
authorSimon Greaves <sjgreaves@gmail.com>
Mon, 21 Aug 2023 20:42:03 +0000 (21:42 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 30 Oct 2023 10:00:56 +0000 (11:00 +0100)
The mixer has an embedded 4x4 USB interface, this config surfaces
the mixer channels as 4 mono inputs, 2 stereo inputs and 2 stereo
outputs. Config based on the Behringer Flow8 config.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/341
Signed-off-by: Simon Greaves <sjgreaves@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/AllenAndHeath/Zedi10-Hifi.conf [new file with mode: 0644]
ucm2/USB-Audio/AllenAndHeath/Zedi10.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/AllenAndHeath/Zedi10-Hifi.conf b/ucm2/USB-Audio/AllenAndHeath/Zedi10-Hifi.conf
new file mode 100644 (file)
index 0000000..4bbae15
--- /dev/null
@@ -0,0 +1,194 @@
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+       {
+               SplitPCM {
+                       Name "zedi10_stereo_out"
+                       Direction Playback
+                       Channels 2
+                       HWChannels 4
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+               }
+       }
+       {
+               SplitPCM {
+                       Name "zedi10_stereo_in"
+                       Direction Capture
+                       Channels 2
+                       HWChannels 4
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+               }
+       }
+       {
+               SplitPCM {
+                       Name "zedi10_mono_in"
+                       Direction Capture
+                       Channels 1
+                       HWChannels 4
+                       HWChannelPos0 MONO
+                       HWChannelPos1 MONO
+                       HWChannelPos2 MONO
+                       HWChannelPos3 MONO
+               }
+       }
+]
+
+SectionDevice."Line1" {
+       Comment "USB IN 1-2"
+
+       Value {
+               PlaybackPriority 100
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "zedi10_stereo_out"
+               Direction Playback
+               HWChannels 4
+               Channels 2
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line2" {
+       Comment "USB IN 3-4"
+
+       Value {
+               PlaybackPriority 200
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "zedi10_stereo_out"
+               Direction Playback
+               HWChannels 4
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Mic1" {
+       Comment "M1"
+
+       ConflictingDevice [
+               "Line12"
+       ]
+
+       Value {
+               CapturePriority 100
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "zedi10_mono_in"
+               Direction Capture
+               HWChannels 4
+               Channels 1
+               Channel0 0
+               ChannelPos0 MONO
+       }
+}
+
+SectionDevice."Mic2" {
+       Comment "M2"
+
+       ConflictingDevice [
+               "Line12"
+       ]
+
+       Value {
+               CapturePriority 101
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "zedi10_mono_in"
+               Direction Capture
+               HWChannels 4
+               Channels 1
+               Channel0 1
+               ChannelPos0 MONO
+       }
+}
+
+SectionDevice."Mic3" {
+       Comment "M3"
+
+       ConflictingDevice [
+               "Line34"
+       ]
+
+       Value {
+               CapturePriority 102
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "zedi10_mono_in"
+               Direction Capture
+               HWChannels 4
+               Channels 1
+               Channel0 2
+               ChannelPos0 MONO
+       }
+}
+
+SectionDevice."Mic4" {
+       Comment "M4"
+
+       ConflictingDevice [
+               "Line34"
+       ]
+
+       Value {
+               CapturePriority 103
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "zedi10_mono_in"
+               Direction Capture
+               HWChannels 4
+               Channels 1
+               Channel0 3
+               ChannelPos0 MONO
+       }
+}
+
+SectionDevice."Line12" {
+       Comment "USB OUT 1-2"
+
+       Value {
+               CapturePriority 104
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "zedi10_stereo_in"
+               Direction Capture
+               HWChannels 4
+               Channels 2
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Line34" {
+       Comment "USB OUT 3-4"
+
+       Value {
+               CapturePriority 105
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "zedi10_stereo_in"
+               Direction Capture
+               HWChannels 4
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
diff --git a/ucm2/USB-Audio/AllenAndHeath/Zedi10.conf b/ucm2/USB-Audio/AllenAndHeath/Zedi10.conf
new file mode 100644 (file)
index 0000000..00d2273
--- /dev/null
@@ -0,0 +1,12 @@
+Comment "Allen & Heath Zedi10 Recording Mode"
+
+SectionUseCase."Recording" {
+       Comment "Recording Mode (4 chan output, 4 chan input)"
+       File "/USB-Audio/AllenAndHeath/Zedi10-Hifi.conf"
+}
+
+Define.DirectCardName "Zedi10"
+Define.DirectPlaybackChannels 4
+Define.DirectCaptureChannels 4
+
+Include.dhw.File "/common/direct.conf"
index a29f33c576f67b1d3c0b302ae75f2c3f0d51154d..81a14467c8f43ea78e4f4c25b61e1121ead1d2ea 100644 (file)
@@ -337,6 +337,15 @@ If.ua-volt2 {
        }
 }
 
+If.zedi10 {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB22f0:0016"
+       }
+       True.Define.ProfileName "AllenAndHeath/Zedi10"
+}
+
 If.mixremap {
        Condition {
                Type String