Skip to content

Commit d42e1d1

Browse files
committed
USB-Audio: Do not use 4ch playback stream for stereo Focusrite Scarlet devices
Link: alsa-project#309 Link: alsa-project#329 Link: alsa-project#314 Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent c615513 commit d42e1d1

File tree

1 file changed

+42
-22
lines changed

1 file changed

+42
-22
lines changed

ucm2/USB-Audio/Focusrite/Scarlett-2i-HiFi.conf

+42-22
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
Include.pcm_split.File "/common/pcm/split.conf"
22

33
Macro [
4-
{
5-
SplitPCM {
6-
Name "scarlett2i_stereo_out"
7-
Direction Playback
8-
Format S32_LE
9-
Channels 2
10-
HWChannels 4
11-
HWChannelPos0 FL
12-
HWChannelPos1 FR
13-
HWChannelPos2 FL
14-
HWChannelPos3 FR
15-
}
16-
}
174
{
185
SplitPCM {
196
Name "scarlett2i_mono_in"
@@ -27,21 +14,54 @@ Macro [
2714
}
2815
]
2916

17+
If.2i4 {
18+
Condition {
19+
Type String
20+
String1 "${var:PlaybackChannels}"
21+
String2 "4"
22+
}
23+
True.Macro [
24+
{
25+
SplitPCM {
26+
Name "scarlett2i_stereo_out"
27+
Direction Playback
28+
Format S32_LE
29+
Channels 2
30+
HWChannels 4
31+
HWChannelPos0 FL
32+
HWChannelPos1 FR
33+
HWChannelPos2 FL
34+
HWChannelPos3 FR
35+
}
36+
}
37+
]
38+
}
39+
3040
SectionDevice."Line1" {
3141
Comment "${var:Playback1Name}"
3242

3343
Value {
3444
PlaybackPriority 200
3545
}
36-
Macro.pcm_split.SplitPCMDevice {
37-
Name "scarlett2i_stereo_out"
38-
Direction Playback
39-
HWChannels 4
40-
Channels 2
41-
Channel0 0
42-
Channel1 1
43-
ChannelPos0 FL
44-
ChannelPos1 FR
46+
If.2i4 {
47+
Condition {
48+
Type String
49+
String1 "${var:PlaybackChannels}"
50+
String2 "4"
51+
}
52+
True.Macro.pcm_split.SplitPCMDevice {
53+
Name "scarlett2i_stereo_out"
54+
Direction Playback
55+
HWChannels 4
56+
Channels 2
57+
Channel0 0
58+
Channel1 1
59+
ChannelPos0 FL
60+
ChannelPos1 FR
61+
}
62+
False.Value {
63+
PlaybackPCM "hw:${CardId}"
64+
}
4565
}
4666
}
4767

0 commit comments

Comments
 (0)