From: Krzysztof Łastowski Date: Sun, 2 Oct 2022 03:55:42 +0000 (+0100) Subject: USB-Audio: UR24C - add Steinberg UR24C (USB0499:174d) X-Git-Tag: v1.2.8~11 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=7330eb244beccd3e705e6bdfe8607f0c6fccbae4;p=alsa-ucm-conf.git USB-Audio: UR24C - add Steinberg UR24C (USB0499:174d) Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/221 Signed-off-by: Krzysztof Łastowski Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/USB-Audio/Steinberg/UR24C-HiFi.conf b/ucm2/USB-Audio/Steinberg/UR24C-HiFi.conf new file mode 100644 index 0000000..285b5c4 --- /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 0000000..29be27c --- /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 b55270b..5066e79 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