alsa-ucm-conf/ucm2/cht-bsw-rt5672/HiFi-stereo-dmic2.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

27 lines
725 B
Text

# Adapted from https://github.com/plbossart/UCM/tree/master/cht-bsw-rt5672
SectionVerb {
Include.e.File "/codecs/rt5672/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"
}
}
}
Include.spk.File "/codecs/rt5672/Speaker.conf"
RenameDevice."Speaker1" "Speaker"
RemoveDevice."Speaker2" "Speaker2"
Include.hp.File "/codecs/rt5672/HeadPhones.conf"
Include.dmic.File "/codecs/rt5672/DMIC2.conf"
RenameDevice."Mic2" "Mic"
RemoveDevice."Mic1" "Mic1"
Include.hsmic.File "/codecs/rt5672/HeadsetMic.conf"