Fix PM8909 CONGA stereo headphone output on nokia-sparkler for a1125 (ampere)

Set CDC_A_RX_COM_OCP_CTL to 0x12 (350 mA limit instead of 0xD1), unlock CDC_D_SEC_ACCESS / CDC_A_SEC_ACCESS (0xA5) around the PERPH_RESET_CTL4 1 -> 0 soft reset in pm8916_wcd_analog_probe(), expand msm8916_wcd_digital_force_sync_ctl() across all stateful registers in msm8916_wcd_digital_reg_defaults[], and split PM8909 CONGA (CDC_D_PERPH_SUBTYPE == 0x02) from CAJON_2_0 (CDC_A_PERPH_SUBTYPE == 0x0a) in patch 0015 so CAJON-only HPH test/bias writes no longer silence right-channel HPHR output on nokia-sparkler while preserving CAJON_2_0 on nokia-beatles and existing audio/standby invariants. Rebuilt kernel/modules, updated test-audio-quality.py and docs, and rebuilt and verified all four a1125 (ampere) target images.
This commit is contained in:
Luxferre committed 2026-11-24 18:00:41 +02:00
1 parent 9619cc9541
commit fa876abde1
13 files changed
+165 -91

No files matched your search

+10
View File
@@ -189,6 +189,11 @@ def check_patch_0015():
"q6core_query_versions_locked",
"core->adsp_version != Q6_ADSP_VERSION_UNKNOWN",
"wcd_reg_defaults_cajon_2_0",
"wcd_reg_defaults_conga",
"pm8916_wcd_is_pm8909",
"CDC_D_PERPH_SUBTYPE_CONGA",
"{CDC_A_RX_COM_OCP_CTL, 0x12}",
"{CDC_A_NCP_FBCTRL, 0x28}",
"{CDC_A_NCP_FBCTRL, 0xA8}",
"{CDC_A_NCP_VCTRL, 0xA4}",
"{CDC_A_RX_HPH_BIAS_PA, 0xFA}",
@@ -200,6 +205,9 @@ def check_patch_0015():
"pm8916_wcd_analog_enable_hphr_dac",
"pm8916_wcd_analog_enable_hph_pa",
"pm8916_wcd_analog_apply_defaults(component, true);",
"snd_soc_component_write(component, CDC_D_PERPH_RESET_CTL4, 0x00);",
"snd_soc_component_write(component, CDC_A_PERPH_RESET_CTL4, 0x00);",
"ARRAY_SIZE(msm8916_wcd_digital_reg_defaults)",
"CDC_A_MBHC_RESULT_2_SWCH_LEVEL_REMOVE",
"pm8916_mbhc_plug_present",
"DIG_CLK_CTL_D_MBHC_CLK_EN",
@@ -214,6 +222,8 @@ def check_patch_0015():
analog_diff = txt.split("diff --git a/sound/soc/codecs/msm8916-wcd-digital.c")[0]
if "+ snd_soc_component_write(component, CDC_A_MASTER_BIAS_CTL, 0x00);" in analog_diff:
return fail("0015 must not zero CDC_A_MASTER_BIAS_CTL on s2 idle gating")
if "+\t{CDC_A_RX_COM_OCP_CTL, 0xD1}" in analog_diff:
return fail("0015 must use 0x12 (350 mA) RX_COM_OCP_CTL default, not 0xD1")
if ".volatile_reg" in txt:
return fail("0015 patch must not set .volatile_reg on msm8916_codec_regmap_config")