From 171c0dfdbd6c31c2a4253ec9e5d2020d13172d63 Mon Sep 17 00:00:00 2001 From: Markus Parviainen Date: Sat, 4 Jan 2025 10:26:10 +0200 Subject: [PATCH] ucm2: USB-Audio: add Presonus Revelator IO 44 (USB194f:0424) Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/495 Signed-off-by: Markus Parviainen Signed-off-by: Jaroslav Kysela --- .../Presonus/Revelator-IO-44-HiFi.conf | 198 ++++++++++++++++++ ucm2/USB-Audio/Presonus/Revelator-IO-44.conf | 12 ++ ucm2/USB-Audio/USB-Audio.conf | 11 + 3 files changed, 221 insertions(+) create mode 100644 ucm2/USB-Audio/Presonus/Revelator-IO-44-HiFi.conf create mode 100644 ucm2/USB-Audio/Presonus/Revelator-IO-44.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 index 0000000..9d47450 --- /dev/null +++ b/ucm2/USB-Audio/Presonus/Revelator-IO-44-HiFi.conf @@ -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 index 0000000..7e771ab --- /dev/null +++ b/ucm2/USB-Audio/Presonus/Revelator-IO-44.conf @@ -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" diff --git a/ucm2/USB-Audio/USB-Audio.conf b/ucm2/USB-Audio/USB-Audio.conf index 5578931..8cf3ce1 100644 --- a/ucm2/USB-Audio/USB-Audio.conf +++ b/ucm2/USB-Audio/USB-Audio.conf @@ -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 -- 2.47.1