Skip to content

Commit

Permalink
ucm2: codecs: lpass-wsa: use set Digital gain at 0dB
Browse files Browse the repository at this point in the history
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: #335
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Tested-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Srinivas-Kandagatla authored and perexg committed Oct 30, 2023
1 parent 609ac85 commit 5524b3d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions ucm2/Qualcomm/sc8280xp/LENOVO-X13s.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 0 additions & 2 deletions ucm2/codecs/qcom-lpass/wsa-macro/SpeakerDisableSeq.conf
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 0 additions & 2 deletions ucm2/codecs/qcom-lpass/wsa-macro/SpeakerEnableSeq.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
6 changes: 6 additions & 0 deletions ucm2/codecs/qcom-lpass/wsa-macro/init.conf
Original file line number Diff line number Diff line change
@@ -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"
]
6 changes: 0 additions & 6 deletions ucm2/codecs/wsa883x/init.conf
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 5524b3d

Please sign in to comment.