]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: rt712: simplify the init settings
authorShuming Fan <shumingf@realtek.com>
Mon, 3 Nov 2025 10:37:57 +0000 (18:37 +0800)
committerJaroslav Kysela <perex@perex.cz>
Mon, 3 Nov 2025 11:07:17 +0000 (12:07 +0100)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/628
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/rt712/init.conf

index 1e453801cbb780d1b654648c84f7fa1bededff3c..c07f5c5a935ee80bd93d9e89c38d21972a021226 100644 (file)
@@ -1,30 +1,23 @@
 # RT712 specific volume control settings
 
-If.rt712_init {
+BootSequence [
+       cset "name='rt712 FU05 Playback Volume' 87"
+       cset "name='rt712 ADC 23 Mux' 'MIC2'"
+       cset "name='rt712 FU0F Capture Volume' 57"
+       cset "name='rt712 FU0F Capture Switch' 1"
+]
+
+If.rt712vb_init {
        Condition {
                Type RegexMatch
                Regex "(rt712(-sdca)?)"
                String "${var:MultiMicShadow}"
        }
-       True {
+       True.BootSequence [
                # RT712-VB integrated with DMIC
-               BootSequence [
-                       cset "name='rt712 FU05 Playback Volume' 87"
-                       cset "name='rt712 ADC 23 Mux' 'MIC2'"
-                       cset "name='rt712 FU0F Capture Volume' 57"
-                       cset "name='rt712 FU0F Capture Switch' 1"
-                       cset "name='rt712 FU1E Capture Switch' 1"
-                       cset "name='rt712 FU1E Capture Volume' 47"
-                       cset "name='rt712 ADC 0A Mux' 'DMIC1'"
-                       cset "name='rt712 ADC 0B Mux' 'DMIC2'"
-               ]
-       }
-       False {
-               BootSequence [
-                       cset "name='rt712 FU05 Playback Volume' 87"
-                       cset "name='rt712 ADC 23 Mux' 'MIC2'"
-                       cset "name='rt712 FU0F Capture Volume' 57"
-                       cset "name='rt712 FU0F Capture Switch' 1"
-               ]
-       }
+               cset "name='rt712 FU1E Capture Switch' 1"
+               cset "name='rt712 FU1E Capture Volume' 47"
+               cset "name='rt712 ADC 0A Mux' 'DMIC1'"
+               cset "name='rt712 ADC 0B Mux' 'DMIC2'"
+       ]
 }