Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6d3dc5e authored by Sudheer Papothi's avatar Sudheer Papothi
Browse files

ASoC: wcd9335: Update headset gain calibration on v2



Disable headset efuse gain calibration if wcd9335 codec
efuse is not blown. This change reduces error in gain
in headset path.

Change-Id: I9a104a94bc41b8d95fe038bcab68183d1ef95a37
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
parent 8aaeedc6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -700,8 +700,13 @@ int tasha_enable_efuse_sensing(struct snd_soc_codec *codec)
	if (!(snd_soc_read(codec, WCD9335_CHIP_TIER_CTRL_EFUSE_STATUS) & 0x01))
		WARN(1, "%s: Efuse sense is not complete\n", __func__);

	if (TASHA_IS_2_0(priv->wcd9xxx->version))
	if (TASHA_IS_2_0(priv->wcd9xxx->version)) {
		if (!(snd_soc_read(codec,
			WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT0) & 0x40))
			snd_soc_update_bits(codec, WCD9335_HPH_R_ATEST,
					    0x04, 0x00);
		tasha_enable_sido_buck(codec);
	}

	tasha_cdc_mclk_enable(codec, false, false);