Laptops have A/B class amps and using H class mode results in distortion.
Create a specific sequence variant for them.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/670
Signed-off-by: Val Packett <val@packett.cool>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
SectionDevice."Headphones" {
Comment "Headphones playback"
- Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
+ Include.wcdhpe.File "/codecs/wcd938x/HeadphoneABEnableSeq.conf"
Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
"HDMI2"
]
- Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
+ Include.wcdhpe.File "/codecs/wcd938x/HeadphoneABEnableSeq.conf"
Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
SectionDevice."Headphones" {
Comment "Headphones playback"
- Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
+ Include.wcdhpe.File "/codecs/wcd938x/HeadphoneABEnableSeq.conf"
Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
SectionDevice."Headphones" {
Comment "Headphones playback"
- Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
+ Include.wcdhpe.File "/codecs/wcd938x/HeadphoneABEnableSeq.conf"
Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
"HDMI2"
]
- Include.wcdhpe.File "/codecs/wcd938x/HeadphoneEnableSeq.conf"
+ Include.wcdhpe.File "/codecs/wcd938x/HeadphoneABEnableSeq.conf"
Include.wcdhpd.File "/codecs/wcd938x/HeadphoneDisableSeq.conf"
Include.rxmhpe.File "/codecs/qcom-lpass/rx-macro/HeadphoneEnableSeq.conf"
Include.rxmhpd.File "/codecs/qcom-lpass/rx-macro/HeadphoneDisableSeq.conf"
--- /dev/null
+# Laptops with the wcd9385 *need* CLS_AB_(LO)HIFI to not have distortion
+
+EnableSequence [
+ cset "name='HPHL_RDAC Switch' 1"
+ cset "name='HPHR_RDAC Switch' 1"
+ cset "name='HPHL Switch' 1"
+ cset "name='HPHR Switch' 1"
+ cset "name='HPHR_COMP Switch' 0"
+ cset "name='HPHL_COMP Switch' 0"
+ cset "name='CLSH Switch' 1"
+ cset "name='LO Switch' 1"
+ cset "name='RX HPH Mode' CLS_AB_LOHIFI"
+]