aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2020-11-20 12:12:48 +0000
committerJaroslav Kysela <perex@perex.cz>2021-04-15 14:56:51 +0200
commit84456e8486197109c09bcb120fe4a01ca345fe4f (patch)
treefcdebba85f2c279bd0a447e202a047cc866f94f1
parent197025656ec456331d1a34357b113913ec3b187f (diff)
ucm2: codecs: lpass: add codec sequences for wsa and va macro
Add enable/disable codec sequence for Qualcomm Low Power Audio Subsystem (LPASS) Codec WSA and VA Macros. BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/84 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--ucm2/codecs/qcom-lpass/va-macro/DMIC0DisableSeq.conf5
-rw-r--r--ucm2/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf5
-rw-r--r--ucm2/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf10
-rw-r--r--ucm2/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf10
4 files changed, 30 insertions, 0 deletions
diff --git a/ucm2/codecs/qcom-lpass/va-macro/DMIC0DisableSeq.conf b/ucm2/codecs/qcom-lpass/va-macro/DMIC0DisableSeq.conf
new file mode 100644
index 0000000..ec3f45a
--- /dev/null
+++ b/ucm2/codecs/qcom-lpass/va-macro/DMIC0DisableSeq.conf
@@ -0,0 +1,5 @@
+DisableSequence [
+ cset "name='VA DMIC MUX0' ZERO"
+ cset "name='VA_DEC0 Volume' 0"
+ cset "name='VA_AIF1_CAP Mixer DEC0' 0"
+]
diff --git a/ucm2/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf b/ucm2/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf
new file mode 100644
index 0000000..bd6e8f5
--- /dev/null
+++ b/ucm2/codecs/qcom-lpass/va-macro/DMIC0EnableSeq.conf
@@ -0,0 +1,5 @@
+EnableSequence [
+ cset "name='VA DMIC MUX0' DMIC0"
+ cset "name='VA_AIF1_CAP Mixer DEC0' 1"
+ cset "name='VA_DEC0 Volume' 100"
+]
diff --git a/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf b/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf
new file mode 100644
index 0000000..1f27d4c
--- /dev/null
+++ b/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf
@@ -0,0 +1,10 @@
+DisableSequence [
+ cset "name='WSA_RX0 Digital Volume' 0"
+ cset "name='WSA_RX1 Digital Volume' 0"
+ cset "name='WSA_COMP1 Switch' 0"
+ cset "name='WSA_COMP2 Switch' 0"
+ cset "name='WSA_RX0 INP0' ZERO"
+ cset "name='WSA_RX1 INP0' ZERO"
+ cset "name='WSA RX0 MUX' ZERO"
+ cset "name='WSA RX1 MUX' ZERO"
+]
diff --git a/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf b/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf
new file mode 100644
index 0000000..618bab4
--- /dev/null
+++ b/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf
@@ -0,0 +1,10 @@
+EnableSequence [
+ cset "name='WSA RX0 MUX' AIF1_PB"
+ cset "name='WSA RX1 MUX' AIF1_PB"
+ cset "name='WSA_RX0 INP0' RX0"
+ cset "name='WSA_RX1 INP0' RX1"
+ cset "name='WSA_COMP1 Switch' 1"
+ cset "name='WSA_COMP2 Switch' 1"
+ cset "name='WSA_RX0 Digital Volume' 68"
+ cset "name='WSA_RX1 Digital Volume' 68"
+]