alsa-ucm-conf/ucm2/bytcr-rt5651/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

83 lines
1.3 KiB
Text

If.spk {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-stereo-spk"
}
True {
Include.spk.File "/codecs/rt5651/Speaker.conf"
}
}
If.mono {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-mono-spk"
}
True {
Include.mspk.File "/codecs/rt5651/MonoSpeaker.conf"
}
}
If.headphones {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-mic-hp-swapped"
}
True {
Include.hp.File "/codecs/rt5651/HeadPhones-swapped.conf"
}
False {
Include.hp.File "/codecs/rt5651/HeadPhones.conf"
}
}
If.dmic1 {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-dmic1-mic"
}
True {
Include.dmic.File "/codecs/rt5651/DigitalMic.conf"
Include.hsmic.File "/codecs/rt5651/IN2-HeadsetMic.conf"
}
False {
Include.hsmic.File "/codecs/rt5651/IN3-HeadsetMic.conf"
}
}
If.in1 {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-in1-mic"
}
True {
Include.mic.File "/codecs/rt5651/IN1-InternalMic.conf"
}
}
If.in2 {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-in2-mic"
}
True {
Include.mic.File "/codecs/rt5651/IN2-InternalMic.conf"
}
}
If.in12 {
Condition {
Type String
Haystack "${CardLongName}"
Needle "-in12-mic"
}
True {
Include.mic.File "/codecs/rt5651/IN12-InternalMic.conf"
}
}