Syntax 4
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.AcpCardId "$${find-card:field=name,return=id,regex='^acp$'}"
Define.DeviceMic "Mic"
+If.dualcodec {
+ Condition {
+ Type String
+ Haystack "${var:CardLongName}"
+ Needle "DualCodecs"
+ }
+ True {
+ Define.Done y
+ Define.AcpCardId ""
+ Include.dual.File "/HDA-Intel/DualCodecs/DualCodecs.conf"
+ }
+}
+
If.acp {
Condition {
Type String
Empty "${var:Use}"
}
False {
+ Define.Done y
+
SectionUseCase."HiFi" {
- File "HiFi.conf"
+ File "/HDA-Intel/HiFi.conf"
Comment "Play HiFi quality Music"
}
sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:Mic ACP LED Capture Switch"
]
}
- True {
- Error "UCM is not supported for this HDA model (${CardLongName})"
+}
+
+If.err {
+ Condition {
+ Type String
+ Empty "${var:Done}"
}
+ True.Error "UCM is not supported for this HDA model (${CardLongName})"
}