This device is basically an earlier model of the UR22C that already has
a configuration. The main functional difference is that the UR22mkII
only has 2 hardware channels for the inputs. I have also changed the
names/comments in the config to mostly match the text on the device
(Input 1/Input 2).
This configuration was tested with a Steinberg UR22mkII with firmware
version 1.04.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/626
Signed-off-by: Marius Renner <marius@mariusrenner.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
--- /dev/null
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+ {
+ SplitPCM {
+ Name "steinberg_ur22mkii_mono_in"
+ Direction Capture
+ Channels 1
+ HWChannels 2
+ HWChannelPos0 MONO
+ HWChannelPos1 MONO
+ }
+ }
+]
+
+SectionDevice."Line 1" {
+ Comment "Stereo Output"
+
+ Value {
+ PlaybackPriority 200
+ PlaybackPCM "hw:${CardId}"
+ }
+}
+
+SectionDevice."Input 1" {
+ Comment "Input 1"
+
+ Value {
+ CapturePriority 600
+ }
+ Macro.pcm_split.SplitPCMDevice {
+ Name "steinberg_ur22mkii_mono_in"
+ Direction Capture
+ HWChannels 2
+ Channels 1
+ Channel0 0
+ ChannelPos0 MONO
+ }
+}
+
+SectionDevice."Input 2" {
+ Comment "Input 2"
+
+ Value {
+ CapturePriority 500
+ }
+ Macro.pcm_split.SplitPCMDevice {
+ Name "steinberg_ur22mkii_mono_in"
+ Direction Capture
+ HWChannels 2
+ Channels 1
+ Channel0 1
+ ChannelPos0 MONO
+ }
+}
--- /dev/null
+Comment "Steinberg UR22mkII USB-Audio"
+
+SectionUseCase."HiFi" {
+ Comment "HiFi"
+ File "/USB-Audio/Steinberg/UR22mkII-HiFi.conf"
+}
+
+Define.DirectPlaybackChannels 2
+Define.DirectCaptureChannels 2
+
+Include.dhw.File "/common/direct.conf"
True.Define.ProfileName "Steinberg/UR22C"
}
+If.steinberg-ur22mkii {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "USB0499:170f"
+ }
+ True.Define.ProfileName "Steinberg/UR22mkII"
+}
+
If.steinberg-ur24c {
Condition {
Type String