Instead the unconditional include, use the Include configuration directive which can load some files when evaluated (on demand only). Signed-off-by: Jaroslav Kysela <perex@perex.cz>
33 lines
633 B
Text
33 lines
633 B
Text
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
|
|
|
|
|
|
SectionVerb {
|
|
|
|
Include.e.File "/codecs/rt5651/EnableSeq.conf"
|
|
|
|
If.Controls {
|
|
Condition {
|
|
Type ControlExists
|
|
Control "name='media0_in Gain 0 Switch'"
|
|
}
|
|
Before.EnableSequence "0"
|
|
True {
|
|
Include.pe.File "/platforms/bytcr/PlatformEnableSeq.conf"
|
|
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
|
|
}
|
|
}
|
|
}
|
|
|
|
If.0 {
|
|
Condition {
|
|
Type String
|
|
Haystack "${CardComponents}"
|
|
Needle "cfg-spk:"
|
|
}
|
|
True {
|
|
Include.comp.File "/bytcr-rt5651/HiFi-Components.conf"
|
|
}
|
|
False {
|
|
Include.long.File "/bytcr-rt5651/HiFi-LongName.conf"
|
|
}
|
|
}
|