Syntax 8
-Define.Use "" # a non-empty string to use UCM configuration for HDA devices
-Define.Done "" # a non-empty string to skip the end error
+Define.Use "${var:@HDA}" # a non-empty string to use UCM configuration for HDA devices
+Define.Done "" # a non-empty string to skip the end error
Define.AcpCardId "$${find-card:field=name,return=id,regex='^acp(|6[23x]|-pdm-mach)$'}"
Define.MicType "hda"
Type String
Empty "${var:AcpCardId}"
}
- False {
- Define.Use y
- Define.MicType "acp"
+ False.If.noacp {
+ Condition {
+ Type String
+ Empty "${var:@NoACP}"
+ }
+ True {
+ Define.Use y
+ Define.MicType "acp"
+ }
}
}
Control "name='Master Playback Switch'"
}
True {
- Include.led.File "/common/ctl/led.conf"
Include.init.File "/HDA/init.conf"
- Macro [
- { CtlNew { Arg="name='Mic ACP LED Capture Switch' type=bool,count=1 off" } }
- { SetLED { LED="mic" Action="attach" CtlId="Mic ACP LED Capture Switch" } }
- { SetLED { LED="mic" Action="detach" CtlId="Capture Switch" } }
- ]
+ If.acp {
+ Condition {
+ Type String
+ String1 "${var:MicType}"
+ String2 "acp"
+ }
+ True {
+ Include.led.File "/common/ctl/led.conf"
+
+ Macro [
+ { CtlNew { Arg="name='Mic ACP LED Capture Switch' type=bool,count=1 off" } }
+ { SetLED { LED="mic" Action="attach" CtlId="Mic ACP LED Capture Switch" } }
+ { SetLED { LED="mic" Action="detach" CtlId="Capture Switch" } }
+ ]
+ }
+ }
}
}
}
If.acp {
Condition {
Type String
- Empty "${var:AcpCardId}"
+ String1 "${var:MicType}"
+ String2 "acp"
}
- True.Include.analog.File "/HDA/HiFi-analog.conf"
- False.Include {
+ False.Include.analog.File "/HDA/HiFi-analog.conf"
+ True.Include {
acp.File "/HDA/HiFi-acp.conf"
analog.File "/HDA/HiFi-analog.conf"
}