File: //usr/share/alsa/ucm2/Intel/chtnau8824/HiFi.conf
Define.Speaker "Speaker"
Define.Mic "InternalMic"
Define.SST "yes"
Define.RightOutputChannel 1
If.Controls {
Condition {
Type ControlExists
Control "name='media0_in Gain 0 Switch'"
}
False {
Define.SST ""
Define.RightOutputChannel 0
}
}
If.cfg-mspk {
Condition {
Type RegexMatch
String "${CardLongName}"
Regex "(cube-i1_TF|PIPO-W2S)"
}
True {
Define.Speaker "MonoSpeaker"
}
}
If.cfg-mic {
Condition {
Type RegexMatch
String "${CardLongName}"
# Medion E22??T models put DMIC in their product version
# when using DMICs
Regex "(MEDION-E22..T.*-DMIC-)"
}
True {
Define.Mic "DMIC1_2"
}
}
SectionVerb {
Value {
TQ "HiFi"
}
Include.e.File "/codecs/nau8824/EnableSeq.conf"
If.SST {
Condition {
Type String
Empty "${var:SST}"
}
False {
Include.pe {
File "/platforms/bytcr/PlatformEnableSeq.conf"
Before.EnableSequence "0"
}
Include.pd.File "/platforms/bytcr/PlatformDisableSeq.conf"
}
}
}
# The includes using $vars in there path must be conditional otherwise the
# $var gets expanded before the other If-s above can change the vars.
If.cfg-includes {
Condition { Type String Empty "" }
True {
Include.spk.File "/codecs/nau8824/${var:Speaker}.conf"
Include.hp.File "/codecs/nau8824/HeadPhones.conf"
Include.mic.File "/codecs/nau8824/${var:Mic}.conf"
Include.hsmic.File "/codecs/nau8824/HeadsetMic.conf"
}
}