It seems that firmware version 3.20 added 4 capture channels while
previous firmware has only 2 capture channels.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/554
Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/547
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Name "steinberg_ur22c_mono_in"
Direction Capture
Channels 1
- HWChannels 4
+ HWChannels "${var:DirectCaptureChannels}"
HWChannelPos0 MONO
HWChannelPos1 MONO
}
Macro.pcm_split.SplitPCMDevice {
Name "steinberg_ur22c_mono_in"
Direction Capture
- HWChannels 4
+ HWChannels "${var:DirectCaptureChannels}"
Channels 1
Channel0 0
ChannelPos0 MONO
Macro.pcm_split.SplitPCMDevice {
Name "steinberg_ur22c_mono_in"
Direction Capture
- HWChannels 4
+ HWChannels "${var:DirectCaptureChannels}"
Channels 1
Channel0 1
ChannelPos0 MONO
Comment "Steinberg UR22C USB-Audio"
+Define.DirectPlaybackChannels 2
+Define.DirectCaptureChannels 4
+
+If.fw {
+ Condition {
+ Type RegexMatch
+ String "${sys-card:device/../bcdDevice}"
+ Match "0[12]??"
+ }
+ True.Define.DirectCaptureChannels 2
+}
+
SectionUseCase."HiFi" {
Comment "HiFi"
File "/USB-Audio/Steinberg/UR22C-HiFi.conf"
}
-Define.DirectPlaybackChannels 2
-Define.DirectCaptureChannels 2
-
Include.dhw.File "/common/direct.conf"