Skip to contentSkip to conversation

arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds

PATCH In review Cédric Bellegarde 3 participants 3 messages Sep 22 – Sep 23

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds

Configure the Multi-Button Headset Control (MBHC) thresholds for the WCD9340 audio codec to match the vendor downstream calibration.

---
 arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +4 -0
index 439779f308e3..8a99c3f55bf6 100644
@@ -1099,6 +1099,10 @@ &wcd9340 {
 	vdd-tx-supply = <&vreg_s4a_1p8>;
 	vdd-rx-supply = <&vreg_s4a_1p8>;
 	vdd-io-supply = <&vreg_s4a_1p8>;
+	qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000
+						  500000 500000 500000 500000>;
+	qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
+	qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
 };
 
 &wifi {

---
base-commit: fe2ec83746e501645709761605c2464a44fd2929
change-id: 20260922-mbhc-342148b3fd5b

Best regards,

Signature · 1 line
Cédric Bellegarde <[email protected]>
Reviewed-by on v1 1/1
#2 lore raw
In reply to Cédric Bellegarde

arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi

Quoted 12 lines · Cédric Bellegarde

Configure the Multi-Button Headset Control (MBHC) thresholds for the WCD9340 audio codec to match the vendor downstream calibration.

---
  arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ++++
  1 file changed, 4 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +0 -0
index 439779f308e3..8a99c3f55bf6 100644

Hello Cédric,

only enchilada has the 3.5 jack, I assume no use for fajita ... but it doesn't matter much here as it just changes existing default.

David

Quoted 17 lines
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +4 -1
@@ -1099,6 +1099,10 @@ &wcd9340 {
  	vdd-tx-supply = <&vreg_s4a_1p8>;
  	vdd-rx-supply = <&vreg_s4a_1p8>;
  	vdd-io-supply = <&vreg_s4a_1p8>;
+	qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000
+						  500000 500000 500000 500000>;
+	qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
+	qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
  };
 
  &wifi {
 
---

base-commit: fe2ec83746e501645709761605c2464a44fd2929
change-id: 20260922-mbhc-342148b3fd5b

Best regards,