[alsa-devel] [PATCH alsa-ucm-conf 5/7] codecs/msm8916-wcd: Earpiece: Add missing Enable/DisableSequence
Stephan Gerhold
stephan at gerhold.net
Tue Jan 14 12:21:08 CET 2020
Since commit 7d2f70f248ab ("ASoC: msm8916-wcd-analog: Add earpiece")
in the Linux kernel, the Earpiece in msm8916-wcd is now supported.
Add the necessary Enable/DisableSequence for it.
Cc: Srinivas Kandagatla <srinivas.kandagatla at linaro.org>
Signed-off-by: Stephan Gerhold <stephan at gerhold.net>
---
ucm2/codecs/msm8916-wcd/Earpiece.conf | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/ucm2/codecs/msm8916-wcd/Earpiece.conf b/ucm2/codecs/msm8916-wcd/Earpiece.conf
index e9f8b9d..726b436 100644
--- a/ucm2/codecs/msm8916-wcd/Earpiece.conf
+++ b/ucm2/codecs/msm8916-wcd/Earpiece.conf
@@ -5,4 +5,18 @@ SectionDevice."Earpiece" {
"Speaker"
"Headphones"
]
+
+ EnableSequence [
+ cset "name='RX1 MIX1 INP1' RX1"
+ cset "name='RDAC2 MUX' RX1"
+ cset "name='EAR_S' 1"
+ ## gain to 0dB
+ cset "name='RX1 Digital Volume' 128"
+ ]
+
+ DisableSequence [
+ cset "name='RX1 Digital Volume' 0"
+ cset "name='EAR_S' 0"
+ cset "name='RX1 MIX1 INP1' ZERO"
+ ]
}
--
2.24.1
More information about the Alsa-devel
mailing list