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

Commit 1bb38a60 authored by Venkat Sudhir's avatar Venkat Sudhir Committed by Bhalchandra Gajare
Browse files

ASoC: wcd9330: Send bus status to CPE core



When slimbus state changes this needs to be updated
to CPE core. CPE core will load the images when codec
get slimbus online notification.

Change-Id: Ib58c7eaa3f6e9abb8aee7c1c5fe4ea7200460111
Signed-off-by: default avatarVenkat Sudhir <vsudhir@codeaurora.org>
Signed-off-by: default avatarBhalchandra Gajare <gajare@codeaurora.org>
parent 277cf3d5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -7067,8 +7067,11 @@ static void tomtom_init_slim_slave_cfg(struct snd_soc_codec *codec)
static int tomtom_device_down(struct wcd9xxx *wcd9xxx)
{
	struct snd_soc_codec *codec;
	struct tomtom_priv *priv;

	codec = (struct snd_soc_codec *)(wcd9xxx->ssr_priv);
	priv = snd_soc_codec_get_drvdata(codec);
	wcd_cpe_ssr_event(priv->cpe_core, WCD_CPE_BUS_DOWN_EVENT);
	snd_soc_card_change_online_state(codec->card, 0);

	return 0;
@@ -7544,7 +7547,7 @@ static int tomtom_post_reset_cb(struct wcd9xxx *wcd9xxx)

	tomtom_init_slim_slave_cfg(codec);
	tomtom_slim_interface_init_reg(codec);

	wcd_cpe_ssr_event(tomtom->cpe_core, WCD_CPE_BUS_UP_EVENT);
	wcd9xxx_resmgr_post_ssr(&tomtom->resmgr);

	if (tomtom->mbhc_started) {