alsa-ucm-conf/ucm2/bytcht-es8316/HiFi-LongName.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

43 lines
781 B
Text

If.spk {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-stereo-spk"
}
True.Include.spk.File "/codecs/es8316/Speaker.conf"
}
If.mono {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-mono-spk"
}
True.Include.mspk.File "/codecs/es8316/MonoSpeaker.conf"
}
Include.hs.File "/codecs/es8316/HeadPhones.conf"
If.in1 {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-in1-mic"
}
True {
Include.mic.File "/codecs/es8316/IN1-InternalMic.conf"
Include.hsmic.File "/codecs/es8316/IN2-HeadsetMic.conf"
}
}
If.in2 {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-in2-mic"
}
True {
Include.hsmic.File "/codecs/es8316/IN1-HeadsetMic.conf"
Include.mic.File "/codecs/es8316/IN2-InternalMic.conf"
}
}