Commit d42e1d1 1 parent c615513 commit d42e1d1 Copy full SHA for d42e1d1
File tree 1 file changed +42
-22
lines changed
1 file changed +42
-22
lines changed Original file line number Diff line number Diff line change 1
1
Include.pcm_split.File "/common/pcm/split.conf"
2
2
3
3
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
- }
17
4
{
18
5
SplitPCM {
19
6
Name "scarlett2i_mono_in"
@@ -27,21 +14,54 @@ Macro [
27
14
}
28
15
]
29
16
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
+
30
40
SectionDevice."Line1" {
31
41
Comment "${var:Playback1Name}"
32
42
33
43
Value {
34
44
PlaybackPriority 200
35
45
}
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
+ }
45
65
}
46
66
}
47
67
You can’t perform that action at this time.
0 commit comments