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

Commit 8dce4170 authored by Banajit Goswami's avatar Banajit Goswami
Browse files

ASoC: wcd9335: perform efuse sensing before cache sync



The e-fuse sensing for WCD9335 codec should be done
before regcache_sync in ADSP SSR post reset callback.
This is to make sure that the SIDO BUCK settings are
done before the codec is completely brought out of
reset.

Change-Id: Ic391307ca26b2d9203f0a8646e17fa650540c9e5
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent db86472e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -10920,6 +10920,8 @@ static int tasha_device_down(struct wcd9xxx *wcd9xxx)
	for (count = 0; count < NUM_CODEC_DAIS; count++)
		priv->dai[count].bus_down_in_recovery = true;

	priv->resmgr->sido_input_src = SIDO_SOURCE_INTERNAL;

	return 0;
}

@@ -10973,6 +10975,8 @@ static int tasha_post_reset_cb(struct wcd9xxx *wcd9xxx)
				    0x03, 0x01);
	tasha_codec_init_reg(codec);

	tasha_enable_efuse_sensing(codec);

	regcache_mark_dirty(codec->component.regmap);
	regcache_sync(codec->component.regmap);

@@ -11004,7 +11008,6 @@ static int tasha_post_reset_cb(struct wcd9xxx *wcd9xxx)
		goto err;
	}

	tasha_enable_efuse_sensing(codec);
	tasha_set_spkr_mode(codec, tasha->spkr_mode);
	wcd_cpe_ssr_event(tasha->cpe_core, WCD_CPE_BUS_UP_EVENT);