From: Val Packett Date: Fri, 2 Jan 2026 08:16:18 +0000 (-0300) Subject: ucm2: codecs: wcd938x: add enable sequence with CLS_AB_LOHIFI for laptops X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3cf9df3d87a42a16cd5b7802d654078db3c2abcd;p=alsa-ucm-conf.git ucm2: codecs: wcd938x: add enable sequence with CLS_AB_LOHIFI for laptops 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 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/Qualcomm/sc8280xp/HiFi.conf b/ucm2/Qualcomm/sc8280xp/HiFi.conf index 916f1ee..43fb086 100644 --- a/ucm2/Qualcomm/sc8280xp/HiFi.conf +++ b/ucm2/Qualcomm/sc8280xp/HiFi.conf @@ -35,7 +35,7 @@ SectionDevice."Speaker" { 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" diff --git a/ucm2/Qualcomm/x1e80100/Elite-14-HiFi.conf b/ucm2/Qualcomm/x1e80100/Elite-14-HiFi.conf index 3d541f5..8f4aa2a 100644 --- a/ucm2/Qualcomm/x1e80100/Elite-14-HiFi.conf +++ b/ucm2/Qualcomm/x1e80100/Elite-14-HiFi.conf @@ -46,7 +46,7 @@ SectionDevice."Headphones" { "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" diff --git a/ucm2/Qualcomm/x1e80100/HiFi.conf b/ucm2/Qualcomm/x1e80100/HiFi.conf index 9c585ee..33bb888 100644 --- a/ucm2/Qualcomm/x1e80100/HiFi.conf +++ b/ucm2/Qualcomm/x1e80100/HiFi.conf @@ -39,7 +39,7 @@ SectionDevice."Speaker" { 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" diff --git a/ucm2/Qualcomm/x1e80100/Latitude7455-HiFi.conf b/ucm2/Qualcomm/x1e80100/Latitude7455-HiFi.conf index fe5431f..6f63cf7 100644 --- a/ucm2/Qualcomm/x1e80100/Latitude7455-HiFi.conf +++ b/ucm2/Qualcomm/x1e80100/Latitude7455-HiFi.conf @@ -39,7 +39,7 @@ SectionDevice."Speaker" { 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" diff --git a/ucm2/Qualcomm/x1e80100/T14s-HiFi.conf b/ucm2/Qualcomm/x1e80100/T14s-HiFi.conf index 715f63b..b7be44a 100644 --- a/ucm2/Qualcomm/x1e80100/T14s-HiFi.conf +++ b/ucm2/Qualcomm/x1e80100/T14s-HiFi.conf @@ -45,7 +45,7 @@ SectionDevice."Headphones" { "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" diff --git a/ucm2/codecs/wcd938x/HeadphoneABEnableSeq.conf b/ucm2/codecs/wcd938x/HeadphoneABEnableSeq.conf new file mode 100644 index 0000000..79fb480 --- /dev/null +++ b/ucm2/codecs/wcd938x/HeadphoneABEnableSeq.conf @@ -0,0 +1,13 @@ +# 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" +]