]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: USB-Audio: add Presonus Revelator IO 44 (USB194f:0424)
authorMarkus Parviainen <mrksprvn@gmail.com>
Sat, 4 Jan 2025 08:26:10 +0000 (10:26 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 29 Jan 2025 09:48:09 +0000 (10:48 +0100)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/495
Signed-off-by: Markus Parviainen <mrksprvn@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Presonus/Revelator-IO-44-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/Presonus/Revelator-IO-44.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/Presonus/Revelator-IO-44-HiFi.conf b/ucm2/USB-Audio/Presonus/Revelator-IO-44-HiFi.conf
new file mode 100644 (file)
index 0000000..9d47450
--- /dev/null
@@ -0,0 +1,198 @@
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+       {
+               SplitPCM {
+                       Name "revelator_stereo_out"
+                       Direction Playback
+                       Channels 2
+                       HWChannels 6
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+                       HWChannelPos4 FL
+                       HWChannelPos5 FR
+               }
+       }
+       {
+               SplitPCM {
+                       Name "revelator_stereo_in"
+                       Direction Capture
+                       Channels 2
+                       HWChannels 8
+                       HWChannelPos0 FL
+                       HWChannelPos1 FR
+                       HWChannelPos2 FL
+                       HWChannelPos3 FR
+                       HWChannelPos4 FL
+                       HWChannelPos5 FR
+                       HWChannelPos6 FL
+                       HWChannelPos7 FR
+               }
+       }
+       {
+               SplitPCM {
+                       Name "revelator_mono_in"
+                       Direction Capture
+                       Channels 1
+                       HWChannels 8
+                       HWChannelPos0 MONO
+                       HWChannelPos1 MONO
+                       HWChannelPos2 MONO
+                       HWChannelPos3 MONO
+                       HWChannelPos4 MONO
+                       HWChannelPos5 MONO
+                       HWChannelPos6 MONO
+                       HWChannelPos7 MONO
+               }
+       }
+]
+
+SectionDevice."Playback" {
+       Comment "Playback L/R"
+
+       Value {
+               PlaybackPriority 100
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "revelator_stereo_out"
+               Direction Playback
+               HWChannels 2
+               Channels 2
+               Channel0 0
+               Channel1 1
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."VirtualOutputA" {
+       Comment "Virtual Output A L/R"
+
+       Value {
+               PlaybackPriority 200
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "revelator_stereo_out"
+               Direction Playback
+               HWChannels 2
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."VirtualOutputB" {
+       Comment "Virtual Output B L/R"
+
+       Value {
+               PlaybackPriority 300
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "revelator_stereo_out"
+               Direction Playback
+               HWChannels 2
+               Channels 2
+               Channel0 4
+               Channel1 5
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."Microphone" {
+       Comment "Microphone"
+
+       Value {
+               CapturePriority 100
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "revelator_mono_in"
+               Direction Capture
+               HWChannels 8
+               Channels 1
+               Channel0 0
+               ChannelPos0 MONO
+       }
+}
+
+SectionDevice."HeadsetMic" {
+       Comment "Headset Mic"
+
+       Value {
+               CapturePriority 200
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "revelator_mono_in"
+               Direction Capture
+               HWChannels 8
+               Channels 1
+               Channel0 1
+               ChannelPos0 MONO
+       }
+}
+
+SectionDevice."LineIn" {
+       Comment "Line In L/R"
+
+       Value {
+               CapturePriority 300
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "revelator_stereo_in"
+               Direction Capture
+               HWChannels 8
+               Channels 2
+               Channel0 2
+               Channel1 3
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."StreamMixA" {
+       Comment "Stream Mix A L/R"
+
+       Value {
+               CapturePriority 400
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "revelator_stereo_in"
+               Direction Capture
+               HWChannels 8
+               Channels 2
+               Channel0 4
+               Channel1 5
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
+
+SectionDevice."StreamMixB" {
+       Comment "Stream Mix B L/R"
+
+       Value {
+               CapturePriority 500
+       }
+
+       Macro.pcm_split.SplitPCMDevice {
+               Name "revelator_stereo_in"
+               Direction Capture
+               HWChannels 8
+               Channels 2
+               Channel0 6
+               Channel1 7
+               ChannelPos0 FL
+               ChannelPos1 FR
+       }
+}
diff --git a/ucm2/USB-Audio/Presonus/Revelator-IO-44.conf b/ucm2/USB-Audio/Presonus/Revelator-IO-44.conf
new file mode 100644 (file)
index 0000000..7e771ab
--- /dev/null
@@ -0,0 +1,12 @@
+Comment "Presonus Revelator IO 44"
+
+SectionUseCase."HiFi" {
+       Comment "Default"
+
+       File "/USB-Audio/Presonus/Revelator-IO-44-HiFi.conf"
+}
+
+Define.DirectPlaybackChannels 6
+Define.DirectCaptureChannels 8
+
+Include.dhw.File "/common/direct.conf"
index 5578931ce2c9e7eb9e8f241b7de9501ab6e863c9..8cf3ce1f117d318fddab0e050f5d69b22ff134d2 100644 (file)
@@ -418,6 +418,17 @@ If.minifuse12 {
        True.Define.ProfileName "Arturia/Minifuse-12"
 }
 
+If.revelator {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB194f:0424"
+       }
+       True.Define {
+               ProfileName "Presonus/Revelator-IO-44"
+       }
+}
+
 If.zedi10 {
        Condition {
                Type String