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@linaro.org Signed-off-by: Stephan Gerhold stephan@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" + ] }