]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: codecs: wcd938x: add enable sequence with CLS_AB_LOHIFI for laptops
authorVal Packett <val@packett.cool>
Fri, 2 Jan 2026 08:16:18 +0000 (05:16 -0300)
committerJaroslav Kysela <perex@perex.cz>
Mon, 16 Feb 2026 09:53:56 +0000 (10:53 +0100)
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>
ucm2/Qualcomm/sc8280xp/HiFi.conf
ucm2/Qualcomm/x1e80100/Elite-14-HiFi.conf
ucm2/Qualcomm/x1e80100/HiFi.conf
ucm2/Qualcomm/x1e80100/Latitude7455-HiFi.conf
ucm2/Qualcomm/x1e80100/T14s-HiFi.conf
ucm2/codecs/wcd938x/HeadphoneABEnableSeq.conf [new file with mode: 0644]

index 916f1ee413d88338dee25cf9af7164b4533c26df..43fb086768dd778b68b837a72f98c72cbcf41db2 100644 (file)
@@ -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"
index 3d541f5c6416b455e3aaff272a2031e63024dd29..8f4aa2a34fbecffd36e1f6f444a0da25a7561473 100644 (file)
@@ -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"
index 9c585eef3095299fb0f7171774e083661383df4a..33bb888b119627c0d8fd7525d49e71f3ecdf1493 100644 (file)
@@ -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"
index fe5431fbb82714b7acdf896c61edd825772467a0..6f63cf7045a0ffd5f3ce0d244aa7c0adb952788e 100644 (file)
@@ -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"
index 715f63b8b957a3f7b5fead6f1f1cd26512fbbb44..b7be44a4727b5048e513cbe951213472fb853cba 100644 (file)
@@ -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 (file)
index 0000000..79fb480
--- /dev/null
@@ -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"
+]