The codec/ sequences must not have the platform specific checks. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
55 lines
915 B
Text
55 lines
915 B
Text
Syntax 3
|
|
|
|
SectionUseCase."HiFi" {
|
|
File "HiFi.conf"
|
|
Comment "Play HiFi quality Music"
|
|
}
|
|
|
|
Define {
|
|
SpeakerCodec1 ""
|
|
SpeakerChannels1 "2"
|
|
SpeakerAmps1 "0"
|
|
HeadsetCodec1 ""
|
|
MicCodec1 ""
|
|
}
|
|
|
|
DefineRegex {
|
|
SpeakerCodec {
|
|
Regex " spk:([a-z0-9]+)"
|
|
String "${CardComponents}"
|
|
}
|
|
SpeakerChannels {
|
|
Regex " cfg-spk:([0-9]+)"
|
|
String "${CardComponents}"
|
|
}
|
|
SpeakerAmps {
|
|
Regex " cfg-amp:([0-9]+)"
|
|
String "${CardComponents}"
|
|
}
|
|
HeadsetCodec {
|
|
Regex " hs:([a-z0-9]+)"
|
|
String "${CardComponents}"
|
|
}
|
|
MicCodec {
|
|
Regex " mic:([a-z0-9]+)"
|
|
String "${CardComponents}"
|
|
}
|
|
}
|
|
|
|
If.hs_init {
|
|
Condition {
|
|
Type Regex
|
|
Regex "(rt5682|rt700|rt711)"
|
|
String "${var:HeadsetCodec1}"
|
|
}
|
|
True.Include.hs_init.File "/codecs/${var:HeadsetCodec1}/init.conf"
|
|
}
|
|
|
|
If.mic_init {
|
|
Condition {
|
|
Type Regex
|
|
Regex "(rt715)"
|
|
String "${var:MicCodec1}"
|
|
}
|
|
True.Include.mic_init.File "/codecs/${var:MicCodec1}/init.conf"
|
|
}
|