OSDN Git Service

rt715: don't initialize obsolete ADC controls
[android-x86/external-alsa-ucm-conf.git] / ucm2 / codecs / rt715 / init.conf
index 15a0571..2baa105 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"
+       ]
+}