Skip to content

Commit b9aabf0

Browse files
committed
USB-Audio: Steinberg UR22C - fix capture channels for older firmware
It seems that firmware version 3.20 added 4 capture channels while previous firmware has only 2 capture channels. Fixes: alsa-project#547 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent 0515e5b commit b9aabf0

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

ucm2/USB-Audio/Steinberg/UR22C-HiFi.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Macro [
66
Name "steinberg_ur22c_mono_in"
77
Direction Capture
88
Channels 1
9-
HWChannels 4
9+
HWChannels "${var:DirectCaptureChannels}"
1010
HWChannelPos0 MONO
1111
HWChannelPos1 MONO
1212
}
@@ -31,7 +31,7 @@ SectionDevice."Line 2" {
3131
Macro.pcm_split.SplitPCMDevice {
3232
Name "steinberg_ur22c_mono_in"
3333
Direction Capture
34-
HWChannels 4
34+
HWChannels "${var:DirectCaptureChannels}"
3535
Channels 1
3636
Channel0 0
3737
ChannelPos0 MONO
@@ -47,7 +47,7 @@ SectionDevice."Line 3" {
4747
Macro.pcm_split.SplitPCMDevice {
4848
Name "steinberg_ur22c_mono_in"
4949
Direction Capture
50-
HWChannels 4
50+
HWChannels "${var:DirectCaptureChannels}"
5151
Channels 1
5252
Channel0 1
5353
ChannelPos0 MONO
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
Comment "Steinberg UR22C USB-Audio"
22

3+
Define.DirectPlaybackChannels 2
4+
Define.DirectCaptureChannels 4
5+
6+
If.fw {
7+
Condition {
8+
Type RegexMatch
9+
String "${sys-card:device/../bcdDevice}"
10+
Match "0[12]??"
11+
}
12+
True.Define.DirectCaptureChannels 2
13+
}
14+
315
SectionUseCase."HiFi" {
416
Comment "HiFi"
517
File "/USB-Audio/Steinberg/UR22C-HiFi.conf"
618
}
719

8-
Define.DirectPlaybackChannels 2
9-
Define.DirectCaptureChannels 2
10-
1120
Include.dhw.File "/common/direct.conf"

0 commit comments

Comments
 (0)