ucm2: Qualcomm: sc8280xp/x1e80100: fix default volume settings
Default volume settings should be specified in the BootSequence rather than in device enable sequences to allow users to override the defaults. Add machine specific BootSequences to set up reasonable defaults for the Lenovo ThinkPad X13s and X1E80100 CRD. Note that the settings depends on the actual hardware configuration and should therefore not be specified in the (potentially shared) codec init files. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/382 Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
f110af659a
commit
8a7fb2c936
8 changed files with 14 additions and 13 deletions
|
|
@ -9,7 +9,6 @@ SectionVerb {
|
|||
cset "name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3' 1"
|
||||
]
|
||||
|
||||
Include.wcde.File "/codecs/wcd938x/DefaultEnableSeq.conf"
|
||||
Include.wsae.File "/codecs/wsa883x/DefaultEnableSeq.conf"
|
||||
|
||||
Value {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,14 @@ SectionUseCase."HiFi" {
|
|||
Comment "HiFi quality Music."
|
||||
}
|
||||
|
||||
BootSequence [
|
||||
cset "name='SpkrLeft PA Volume' 12"
|
||||
cset "name='SpkrRight PA Volume' 12"
|
||||
cset "name='HPHL Volume' 20"
|
||||
cset "name='HPHR Volume' 20"
|
||||
cset "name='ADC2 Volume' 10"
|
||||
]
|
||||
|
||||
Include.card-init.File "/lib/card-init.conf"
|
||||
Include.ctl-remap.File "/lib/ctl-remap.conf"
|
||||
Include.wcd-init.File "/codecs/wcd938x/init.conf"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ SectionVerb {
|
|||
cset "name='MultiMedia4 Mixer VA_CODEC_DMA_TX_0' 1"
|
||||
]
|
||||
|
||||
Include.wcde.File "/codecs/wcd938x/DefaultEnableSeq.conf"
|
||||
Include.wsae.File "/codecs/wsa884x/four-speakers/DefaultEnableSeq.conf"
|
||||
Include.wsm1e.File "/codecs/qcom-lpass/wsa-macro/Wsa1SpeakerEnableSeq.conf"
|
||||
Include.wsm2e.File "/codecs/qcom-lpass/wsa-macro/Wsa2SpeakerEnableSeq.conf"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@ SectionUseCase."HiFi" {
|
|||
Comment "HiFi quality Music."
|
||||
}
|
||||
|
||||
BootSequence [
|
||||
cset "name='HPHL Volume' 20"
|
||||
cset "name='HPHR Volume' 20"
|
||||
cset "name='ADC2 Volume' 10"
|
||||
]
|
||||
|
||||
Include.card-init.File "/lib/card-init.conf"
|
||||
Include.ctl-remap.File "/lib/ctl-remap.conf"
|
||||
Include.wcd-init.File "/codecs/wcd938x/init.conf"
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
EnableSequence [
|
||||
cset "name='HPHR Volume' 20"
|
||||
cset "name='HPHL Volume' 20"
|
||||
]
|
||||
|
|
@ -3,5 +3,4 @@ EnableSequence [
|
|||
cset "name='HDR12 MUX' NO_HDR12"
|
||||
cset "name='ADC2 MUX' INP2"
|
||||
cset "name='ADC2 Switch' 1"
|
||||
cset "name='ADC2 Volume' 10"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
# WCD938X specific volume control settings
|
||||
|
||||
BootSequence [
|
||||
cset "name='ADC2 Volume' 12"
|
||||
]
|
||||
|
||||
LibraryConfig.remap.Config {
|
||||
|
||||
ctl.default.map {
|
||||
|
|
|
|||
|
|
@ -4,11 +4,9 @@ EnableSequence [
|
|||
cset "name='SpkrLeft DAC Switch' 1"
|
||||
cset "name='SpkrLeft VISENSE Switch' 0"
|
||||
cset "name='SpkrLeft WSA MODE' 0"
|
||||
cset "name='SpkrLeft PA Volume' 12"
|
||||
cset "name='SpkrRight COMP Switch' 1"
|
||||
cset "name='SpkrRight BOOST Switch' 1"
|
||||
cset "name='SpkrRight DAC Switch' 1"
|
||||
cset "name='SpkrRight VISENSE Switch' 0"
|
||||
cset "name='SpkrRight PA Volume' 12"
|
||||
cset "name='SpkrRight WSA MODE' 0"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue