alsa-ucm-conf/ucm2/bytcr-rt5651/HiFi.conf
Jaroslav Kysela 0a8dd118f7 ucm2: use Include (Syntax 3)
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>
2020-06-16 13:44:03 +02:00

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"
}
}