From f9949919dc5e548e308ab0e9a5c6a09cc370f4c4 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 18 May 2021 19:14:47 +0200 Subject: rt715: don't initialize obsolete ADC controls Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67 Signed-off-by: Jaroslav Kysela --- ucm2/codecs/rt715/init.conf | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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" + ] +} -- cgit v1.2.3