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

Commit 1ebcfe7f authored by Surendar karka's avatar Surendar karka
Browse files

ASoC: msm: updating EFUSE registers for tasha and tashalite.



Updating the EFUSE registers for tasha and tashalite
so that sound card name is properly updated.

CRs-Fixed: 2040140
Change-Id: I340de746eb0aa20b464257658830429168c088ea
Signed-off-by: default avatarSurendar karka <sukark@codeaurora.org>
parent aebb7d96
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -13715,21 +13715,21 @@ void tasha_get_codec_ver(struct tasha_priv *tasha)
	int i;
	int i;
	u8 val;
	u8 val;
	struct tasha_reg_mask_val codec_reg[] = {
	struct tasha_reg_mask_val codec_reg[] = {
		{WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT10, 0xFF, 0xFF},
		{WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT10, 0xFF, 0x00},
		{WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT11, 0xFF, 0x83},
		{WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT11, 0xFF, 0x00},
		{WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT12, 0xFF, 0x0A},
		{WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT12, 0xFF, 0x00},
	};
	};


	__tasha_enable_efuse_sensing(tasha);
	__tasha_enable_efuse_sensing(tasha);
	for (i = 0; i < ARRAY_SIZE(codec_reg); i++) {
	for (i = 0; i < ARRAY_SIZE(codec_reg); i++) {
		val = wcd9xxx_reg_read(&tasha->wcd9xxx->core_res,
		val = wcd9xxx_reg_read(&tasha->wcd9xxx->core_res,
				codec_reg[i].reg);
				codec_reg[i].reg);
		if (!(val && codec_reg[i].val)) {
		if (!(val)) {
			codec_ver = WCD9335;
			codec_ver = WCD9335;
			goto ret;
			goto ret;
		}
		} else
	}
			codec_ver = WCD9326;
			codec_ver = WCD9326;
	}
ret:
ret:
	pr_debug("%s: codec is %d\n", __func__, codec_ver);
	pr_debug("%s: codec is %d\n", __func__, codec_ver);
}
}