]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
codecs: qcom-lpass/tx-macro: Add Soundwire Analog
authorNeil Armstrong <neil.armstrong@linaro.org>
Mon, 4 Dec 2023 11:30:51 +0000 (12:30 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 29 Jan 2024 12:47:09 +0000 (13:47 +0100)
Add configs to enable/disable Analog Microphones.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/390
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic0EnableSeq.conf [new file with mode: 0644]
ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf [new file with mode: 0644]
ucm2/codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf [new file with mode: 0644]

diff --git a/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic0EnableSeq.conf b/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic0EnableSeq.conf
new file mode 100644 (file)
index 0000000..8282b9c
--- /dev/null
@@ -0,0 +1,6 @@
+EnableSequence [
+       cset "name='TX DEC0 MUX' SWR_MIC"
+       cset "name='TX SMIC MUX0' SWR_MIC0"
+       cset "name='TX_AIF1_CAP Mixer DEC0' 1"
+       cset "name='TX_DEC0 Volume' 100"
+]
diff --git a/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf b/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf
new file mode 100644 (file)
index 0000000..28152bf
--- /dev/null
@@ -0,0 +1,7 @@
+EnableSequence [
+       cset "name='TX DEC0 MUX' SWR_MIC"
+       cset "name='TX SMIC MUX0' SWR_MIC1"
+       cset "name='TX_AIF1_CAP Mixer DEC0' 1"
+       cset "name='DEC0 MODE' ADC_DEFAULT"
+       cset "name='TX_DEC0 Volume' 110"
+]
diff --git a/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf b/ucm2/codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf
new file mode 100644 (file)
index 0000000..9cee13f
--- /dev/null
@@ -0,0 +1,4 @@
+DisableSequence [
+       cset "name='TX SMIC MUX0' ZERO"
+       cset "name='TX_AIF1_CAP Mixer DEC0' 0"
+]