blob: 0e76de35bdbdb2793bb6c1cbe3605dce140271b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# TAS2783 specific switch control settings
Define.SpeakerMixerElem "tas2783-1 Speaker Playback"
If.twoAmpsStereoToOne {
Condition {
Type RegexMatch
Regex "2"
String "${var:SpeakerAmps}"
}
True {
Define.SpeakerMixerElem "tas2783 Speaker"
LibraryConfig.remap.Config {
ctl.default.map {
"name='tas2783 Speaker Playback Switch'" {
"name='tas2783-1 Speaker Playback Switch'".vindex.0 0
"name='tas2783-2 Speaker Playback Switch'".vindex.1 0
}
"name='tas2783 Speaker Playback Volume'" {
"name='tas2783-1 Speaker Playback Volume'".vindex.0 0
"name='tas2783-2 Speaker Playback Volume'".vindex.1 0
}
}
}
}
}
If.oneAmp {
Condition {
Type ControlExists
Control "name='tas2783-1 Speaker Playback Switch'"
}
True.Macro[{ SetLED { LED="speaker" Action="attach" CtlId="tas2783-1 Speaker Playback Switch" } }]
}
If.twoAmps {
Condition {
Type ControlExists
Control "name='tas2783-2 Speaker Playback Switch'"
}
True.Macro[{ SetLED { LED="speaker" Action="attach" CtlId="tas2783-2 Speaker Playback Switch" } }]
}
|