mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
ASoC: wcd9335: Update efuse sensing sequence for wcd9335
WCD9335 Codec version 2.0 has different efuse sequence when compared to previous versions v1.0/v1.1. Update the codec efuse programming sequence based on the version. Change-Id: I830c3f4f33e246e06c7733d9518353518f8ee752 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
This commit is contained in:
parent
166061b18b
commit
d636ebbd41
1 changed files with 5 additions and 2 deletions
|
@ -662,10 +662,13 @@ static enum codec_variant codec_ver;
|
|||
|
||||
int tasha_enable_efuse_sensing(struct snd_soc_codec *codec)
|
||||
{
|
||||
struct tasha_priv *priv = snd_soc_codec_get_drvdata(codec);
|
||||
|
||||
tasha_cdc_mclk_enable(codec, true, false);
|
||||
|
||||
snd_soc_update_bits(codec, WCD9335_CHIP_TIER_CTRL_EFUSE_CTL,
|
||||
0x1E, 0x02);
|
||||
if (!TASHA_IS_2_0(priv->wcd9xxx->version))
|
||||
snd_soc_update_bits(codec, WCD9335_CHIP_TIER_CTRL_EFUSE_CTL,
|
||||
0x1E, 0x02);
|
||||
snd_soc_update_bits(codec, WCD9335_CHIP_TIER_CTRL_EFUSE_CTL,
|
||||
0x01, 0x01);
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue