The load mechanism assumed only one multi-codec in the system, but we saw in #774 multiple instances of those codecs (rt1320 and rt713). Make the load mechanism straight: - introduce file variables - remove shadow variables - probe multi-codecs separately and modify the file variables - test for duplicate file inclusion (in both sof-soundwire / HiFi configs) - merge dmic configs for rt712,rt713 to one file This change also improves filters for speaker/headset/mic init includes. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/775 Link: https://github.com/alsa-project/alsa-ucm-conf/issues/774 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
37 lines
865 B
Text
37 lines
865 B
Text
# RT713 specific volume control settings
|
|
|
|
BootSequence [
|
|
cset "name='rt713 FU05 Playback Volume' 87"
|
|
cset "name='rt713 ADC 23 Mux' 'MIC2'"
|
|
cset "name='rt713 FU0F Capture Volume' 57"
|
|
cset "name='rt713 FU0F Capture Switch' 1"
|
|
]
|
|
|
|
If.rt713dmic_init {
|
|
Condition {
|
|
Type String
|
|
String1 "rt713-dmic"
|
|
String2 "${var:MicCodec1}"
|
|
}
|
|
True.BootSequence [
|
|
cset "name='rt713-dmic ADC 25 Mux' 'DMIC1'"
|
|
cset "name='rt713-dmic FU1E Capture Switch' 1"
|
|
]
|
|
}
|
|
|
|
If.rt713vb_init {
|
|
Condition {
|
|
Type String
|
|
String1 "rt713"
|
|
String2 "${var:MicCodec1}"
|
|
}
|
|
True.BootSequence [
|
|
# RT713-VB integrated with DMIC
|
|
cset "name='rt713 FU1E Capture Switch' 1"
|
|
cset "name='rt713 FU1E Capture Volume' 47"
|
|
cset "name='rt713 ADC 0A Mux' 'DMIC1'"
|
|
cset "name='rt713 ADC 0B Mux' 'DMIC2'"
|
|
]
|
|
}
|
|
|
|
Macro [{ SetLED { LED="mic" Action="attach" CtlId="rt713 FU1E Capture Switch" } }]
|