From 24497484dfb9a5a273c995539095260841c05f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=81astowski?= Date: Sun, 2 Oct 2022 04:55:42 +0100 Subject: [PATCH] USB-Audio: UR24C - add Steinberg UR24C (USB0499:174d) --- ucm2/USB-Audio/Steinberg/UR24C-HiFi.conf | 94 ++++++++++++++++++++++++ ucm2/USB-Audio/Steinberg/UR24C.conf | 11 +++ ucm2/USB-Audio/USB-Audio.conf | 9 +++ 3 files changed, 114 insertions(+) create mode 100644 ucm2/USB-Audio/Steinberg/UR24C-HiFi.conf create mode 100644 ucm2/USB-Audio/Steinberg/UR24C.conf diff --git a/ucm2/USB-Audio/Steinberg/UR24C-HiFi.conf b/ucm2/USB-Audio/Steinberg/UR24C-HiFi.conf new file mode 100644 index 00000000..285b5c41 --- /dev/null +++ b/ucm2/USB-Audio/Steinberg/UR24C-HiFi.conf @@ -0,0 +1,94 @@ +Include.pcm_split.File "/common/pcm/split.conf" + +Macro [ + { + SplitPCM { + Name "steinberg_ur24c_stereo_out" + Direction Playback + Channels 2 + HWChannels 4 + HWChannelPos0 FL + HWChannelPos1 FR + HWChannelPos2 FL + HWChannelPos3 FR + } + } + { + SplitPCM { + Name "steinberg_ur24c_mono_in" + Direction Capture + Channels 1 + HWChannels 2 + HWChannelPos0 MONO + HWChannelPos1 MONO + } + } +] + +SectionDevice."Line 1" { + Comment "Stereo Line (outputs 1 and 2)" + + Value { + PlaybackPriority 200 + } + Macro.pcm_split.SplitPCMDevice { + Name "steinberg_ur24c_stereo_out" + Direction Playback + HWChannels 4 + Channels 2 + Channel0 0 + Channel1 1 + ChannelPos0 FL + ChannelPos1 FR + } +} + +SectionDevice."Line 2" { + Comment "Stereo Line (outputs 3 and 4)" + + Value { + PlaybackPriority 100 + } + Macro.pcm_split.SplitPCMDevice { + Name "steinberg_ur24c_stereo_out" + Direction Playback + HWChannels 4 + Channels 2 + Channel0 2 + Channel1 3 + ChannelPos0 FL + ChannelPos1 FR + } +} + +SectionDevice."Line 3" { + Comment "Mono Line (input 1)" + + Value { + CapturePriority 600 + } + Macro.pcm_split.SplitPCMDevice { + Name "steinberg_ur24c_mono_in" + Direction Capture + HWChannels 2 + Channels 1 + Channel0 0 + ChannelPos0 MONO + } +} + +SectionDevice."Line 4" { + Comment "Mono Line (input 2)" + + Value { + CapturePriority 500 + } + Macro.pcm_split.SplitPCMDevice { + Name "steinberg_ur24c_mono_in" + Direction Capture + HWChannels 2 + Channels 1 + Channel0 1 + ChannelPos0 MONO + } +} diff --git a/ucm2/USB-Audio/Steinberg/UR24C.conf b/ucm2/USB-Audio/Steinberg/UR24C.conf new file mode 100644 index 00000000..29be27c0 --- /dev/null +++ b/ucm2/USB-Audio/Steinberg/UR24C.conf @@ -0,0 +1,11 @@ +Comment "Steinberg UR24C USB-Audio" + +SectionUseCase."HiFi" { + Comment "HiFi" + File "/USB-Audio/Steinberg/UR24C-HiFi.conf" +} + +Define.DirectPlaybackChannels 4 +Define.DirectCaptureChannels 2 + +Include.dhw.File "/common/direct.conf" diff --git a/ucm2/USB-Audio/USB-Audio.conf b/ucm2/USB-Audio/USB-Audio.conf index b55270b1..5066e797 100644 --- a/ucm2/USB-Audio/USB-Audio.conf +++ b/ucm2/USB-Audio/USB-Audio.conf @@ -63,6 +63,15 @@ If.gigabyte-aorus-main { True.Define.ProfileName "Gigabyte/Aorus-Master-Main-Audio" } +If.steinberg-ur24c { + Condition { + Type String + Haystack "${CardComponents}" + Needle "USB0499:174d" + } + True.Define.ProfileName "Steinberg/UR24C" +} + If.steinberg-ur44 { Condition { Type String