aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2021-05-18 19:14:47 +0200
committerJaroslav Kysela <perex@perex.cz>2021-05-18 19:22:53 +0200
commitf9949919dc5e548e308ab0e9a5c6a09cc370f4c4 (patch)
tree00ea127267ec24c0b9997e46f4bf80a44188e9b1
parent8eed6728ff4597c28c945ba65cc7715fd528b126 (diff)
rt715: don't initialize obsolete ADC controls
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--ucm2/codecs/rt715/init.conf15
1 files 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"
+ ]
+}