From: Srinivas Kandagatla Date: Tue, 18 Jul 2023 11:54:12 +0000 (+0100) Subject: ucm2: codecs: lpass-wsa: use set Digital gain at 0dB X-Git-Tag: v1.2.11~60 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=e25f159098821bb6dbc00d6183d24e36ae11867d;p=alsa-ucm-conf.git ucm2: codecs: lpass-wsa: use set Digital gain at 0dB For some reason we ended up with a Digital gain below 0dB, resulting in a very low speaker volume. Fix this to 0dB and let Analog gain control speakers volume. CloseS: https://github.com/alsa-project/alsa-ucm-conf/pull/335 Signed-off-by: Srinivas Kandagatla Reviewed-by: Johan Hovold Tested-by: Johan Hovold Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/Qualcomm/sc8280xp/LENOVO-X13s.conf b/ucm2/Qualcomm/sc8280xp/LENOVO-X13s.conf index fd52729..dd8f584 100644 --- a/ucm2/Qualcomm/sc8280xp/LENOVO-X13s.conf +++ b/ucm2/Qualcomm/sc8280xp/LENOVO-X13s.conf @@ -9,3 +9,4 @@ Include.card-init.File "/lib/card-init.conf" Include.ctl-remap.File "/lib/ctl-remap.conf" Include.codec-init.File "/codecs/wcd938x/init.conf" Include.codec-init.File "/codecs/wsa883x/init.conf" +Include.codec-init.File "/codecs/qcom-lpass/wsa-macro/init.conf" diff --git a/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf b/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf index 1f27d4c..98cf061 100644 --- a/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf +++ b/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf @@ -1,6 +1,4 @@ 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" diff --git a/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf b/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf index 618bab4..488826b 100644 --- a/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf +++ b/ucm2/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf @@ -5,6 +5,4 @@ EnableSequence [ 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" ] diff --git a/ucm2/codecs/qcom-lpass/wsa-macro/init.conf b/ucm2/codecs/qcom-lpass/wsa-macro/init.conf new file mode 100644 index 0000000..29f7c39 --- /dev/null +++ b/ucm2/codecs/qcom-lpass/wsa-macro/init.conf @@ -0,0 +1,6 @@ +# WSA Digital codec specific volume control settings + +BootSequence [ + cset "name='WSA_RX0 Digital Volume' 84" + cset "name='WSA_RX1 Digital Volume' 84" +] diff --git a/ucm2/codecs/wsa883x/init.conf b/ucm2/codecs/wsa883x/init.conf index 75a8fa4..ae7d0fb 100644 --- a/ucm2/codecs/wsa883x/init.conf +++ b/ucm2/codecs/wsa883x/init.conf @@ -1,10 +1,4 @@ # WSA883x specific volume control settings - -BootSequence [ - cset "name='WSA_RX0 Digital Volume' 84" - cset "name='WSA_RX1 Digital Volume' 84" -] - LibraryConfig.remap.Config { ctl.default.map {