# cs42l43 specific control settings
-LibraryConfig.remap.Config {
- ctl.default.map {
- "name='cs42l43 Microphone Capture Switch'" {
- "name='cs42l43 Decimator 3 Switch'".vindex.0 0
- "name='cs42l43 Decimator 4 Switch'".vindex.1 0
- }
- "name='cs42l43 Microphone Capture Volume'" {
- "name='cs42l43 Decimator 3 Volume'".vindex.0 0
- "name='cs42l43 Decimator 4 Volume'".vindex.1 0
- }
- }
-}
-
BootSequence [
cset "name='cs42l43 Decimator 3 Switch' 0"
cset "name='cs42l43 Decimator 4 Switch' 0"
{ SetLED { LED="mic" Action="attach" CtlId="cs42l43 Decimator 3 Switch" } }
{ SetLED { LED="mic" Action="attach" CtlId="cs42l43 Decimator 4 Switch" } }
]
+
+If.CS42L43B {
+ Condition {
+ Type ControlExists
+ Control "name='cs42l43 Decimator 5 Switch'"
+ }
+ True {
+ LibraryConfig.remap.Config {
+ ctl.default.map {
+ "name='cs42l43 Microphone Capture Switch'" {
+ "name='cs42l43 Decimator 5 Switch'".vindex.0 0
+ "name='cs42l43 Decimator 6 Switch'".vindex.1 0
+ "name='cs42l43 Decimator 3 Switch'".vindex.2 0
+ "name='cs42l43 Decimator 4 Switch'".vindex.3 0
+ }
+ "name='cs42l43 Microphone Capture Volume'" {
+ "name='cs42l43 Decimator 5 Volume'".vindex.0 0
+ "name='cs42l43 Decimator 6 Volume'".vindex.1 0
+ "name='cs42l43 Decimator 3 Volume'".vindex.2 0
+ "name='cs42l43 Decimator 4 Volume'".vindex.3 0
+ }
+ }
+ }
+
+ BootSequence [
+ cset "name='cs42l43 Decimator 5 Switch' 0"
+ cset "name='cs42l43 Decimator 6 Switch' 0"
+ ]
+
+ Macro [
+ { SetLED { LED="mic" Action="attach" CtlId="cs42l43 Decimator 5 Switch" } }
+ { SetLED { LED="mic" Action="attach" CtlId="cs42l43 Decimator 6 Switch" } }
+ ]
+ }
+ False {
+ LibraryConfig.remap.Config {
+ ctl.default.map {
+ "name='cs42l43 Microphone Capture Switch'" {
+ "name='cs42l43 Decimator 3 Switch'".vindex.0 0
+ "name='cs42l43 Decimator 4 Switch'".vindex.1 0
+ }
+ "name='cs42l43 Microphone Capture Volume'" {
+ "name='cs42l43 Decimator 3 Volume'".vindex.0 0
+ "name='cs42l43 Decimator 4 Volume'".vindex.1 0
+ }
+ }
+ }
+ }
+}
"Headset"
]
- EnableSequence [
- cset "name='cs42l43 DP1TX1 Input' 'Decimator 3'"
- cset "name='cs42l43 DP1TX2 Input' 'Decimator 4'"
- ]
-
DisableSequence [
cset "name='cs42l43 DP1TX1 Input' 'None'"
cset "name='cs42l43 DP1TX2 Input' 'None'"
]
+ If.CS42L43B {
+ Condition {
+ Type ControlExists
+ Control "name='cs42l43 Decimator 5 Switch'"
+ }
+ True {
+ EnableSequence [
+ cset "name='cs42l43 DP1TX1 Input' 'Decimator 5'"
+ cset "name='cs42l43 DP1TX2 Input' 'Decimator 6'"
+ cset "name='cs42l43 DP1TX3 Input' 'Decimator 3'"
+ cset "name='cs42l43 DP1TX4 Input' 'Decimator 4'"
+ ]
+
+ DisableSequence [
+ cset "name='cs42l43 DP1TX3 Input' 'None'"
+ cset "name='cs42l43 DP1TX4 Input' 'None'"
+ ]
+ }
+ False {
+ EnableSequence [
+ cset "name='cs42l43 DP1TX1 Input' 'Decimator 3'"
+ cset "name='cs42l43 DP1TX2 Input' 'Decimator 4'"
+ ]
+ }
+ }
+
Value {
CapturePriority 100
CapturePCM "hw:${CardId},4"
EnableSequence [
cset "name='cs42l43 ADC1 Input' 'IN1'"
- cset "name='cs42l43 Decimator 1 Mode' 'ADC'"
cset "name='cs42l43 DP2TX1 Input' 'Decimator 1'"
cset "name='cs42l43 DP2TX2 Input' 'Decimator 1'"
]
+ If.CS42L43B {
+ Condition {
+ Type ControlExists
+ Control "name='cs42l43 Decimator 5 Switch'"
+ }
+ False {
+ EnableSequence [
+ cset "name='cs42l43 Decimator 1 Mode' 'ADC'"
+ ]
+ }
+ }
DisableSequence [
cset "name='cs42l43 DP2TX1 Input' 'None'"