]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
rt715: don't initialize obsolete ADC controls
authorJaroslav Kysela <perex@perex.cz>
Tue, 18 May 2021 17:14:47 +0000 (19:14 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 18 May 2021 17:22:53 +0000 (19:22 +0200)
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/rt715/init.conf

index 15a05714d1aa7a17b5c972a32959d4bda47f2e54..2baa105dca40cc31045e1ca812039c220ede2acf 100644 (file)
@@ -5,7 +5,16 @@ BootSequence [
        cset "name='rt715 DMIC4 Boost' 2"
        cset "name='rt715 ADC 24 Mux' 3"
        cset "name='rt715 ADC 25 Mux' 4"
-       cset "name='rt715 ADC 27 Capture Switch' 1"
-       cset "name='rt715 ADC 07 Capture Switch' 1"
-       cset "name='rt715 ADC 07 Capture Volume' 58"
 ]
+
+If.adcxx {
+       Condition {
+               Type ControlExists
+               Control "name='rt715 ADC 07 Capture Switch'"
+       }
+       True.BootSequence [
+               cset "name='rt715 ADC 27 Capture Switch' 1"
+               cset "name='rt715 ADC 07 Capture Switch' 1"
+               cset "name='rt715 ADC 07 Capture Volume' 58"
+       ]
+}