From: Jaroslav Kysela Date: Tue, 18 May 2021 17:14:47 +0000 (+0200) Subject: rt715: don't initialize obsolete ADC controls X-Git-Tag: v1.2.5~12 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f9949919dc5e548e308ab0e9a5c6a09cc370f4c4;p=alsa-ucm-conf.git rt715: don't initialize obsolete ADC controls Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/codecs/rt715/init.conf b/ucm2/codecs/rt715/init.conf index 15a0571..2baa105 100644 --- a/ucm2/codecs/rt715/init.conf +++ b/ucm2/codecs/rt715/init.conf @@ -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" + ] +}