]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
codes: wcd938x: Add Analog Microphones 1 & 5 Sequences
authorNeil Armstrong <neil.armstrong@linaro.org>
Thu, 1 Feb 2024 08:42:10 +0000 (09:42 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 2 Aug 2024 13:51:59 +0000 (15:51 +0200)
Add Enable and Disable sequences for Analog microphones connected
to WCD989x Inputs 1 & 5.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/393
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/wcd938x/AnalogMic1DisableSeq.conf [new file with mode: 0644]
ucm2/codecs/wcd938x/AnalogMic1EnableSeq.conf [new file with mode: 0644]
ucm2/codecs/wcd938x/AnalogMic5DisableSeq.conf [new file with mode: 0644]
ucm2/codecs/wcd938x/AnalogMic5EnableSeq.conf [new file with mode: 0644]

diff --git a/ucm2/codecs/wcd938x/AnalogMic1DisableSeq.conf b/ucm2/codecs/wcd938x/AnalogMic1DisableSeq.conf
new file mode 100644 (file)
index 0000000..3fd191e
--- /dev/null
@@ -0,0 +1,6 @@
+# Analog Microphone on Input1 via ADC1
+DisableSequence [
+       cset "name='ADC1_MIXER Switch' 0"
+       cset "name='ADC1 Switch' 0"
+       cset "name='TX0 MODE' ADC_INVALID"
+]
diff --git a/ucm2/codecs/wcd938x/AnalogMic1EnableSeq.conf b/ucm2/codecs/wcd938x/AnalogMic1EnableSeq.conf
new file mode 100644 (file)
index 0000000..3da975e
--- /dev/null
@@ -0,0 +1,6 @@
+# Analog Microphone on Input1 via ADC1
+EnableSequence [
+       cset "name='ADC1_MIXER Switch' 1"
+       cset "name='ADC1 Switch' 1"
+       cset "name='TX0 MODE' ADC_NORMAL"
+]
diff --git a/ucm2/codecs/wcd938x/AnalogMic5DisableSeq.conf b/ucm2/codecs/wcd938x/AnalogMic5DisableSeq.conf
new file mode 100644 (file)
index 0000000..49fc25c
--- /dev/null
@@ -0,0 +1,6 @@
+# Analog Microphone on Input5 via ADC4
+DisableSequence [
+       cset "name='ADC4_MIXER Switch' 0"
+       cset "name='ADC4 Switch' 0"
+       cset "name='TX3 MODE' ADC_INVALID"
+]
diff --git a/ucm2/codecs/wcd938x/AnalogMic5EnableSeq.conf b/ucm2/codecs/wcd938x/AnalogMic5EnableSeq.conf
new file mode 100644 (file)
index 0000000..d933236
--- /dev/null
@@ -0,0 +1,8 @@
+# Analog Microphone on Input5 via ADC4
+EnableSequence [
+       cset "name='ADC4_MIXER Switch' 1"
+       cset "name='HDR34 MUX' NO_HDR34"
+       cset "name='ADC4 MUX' INP5"
+       cset "name='ADC4 Switch' 1"
+       cset "name='TX3 MODE' ADC_NORMAL"
+]