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

Commit 898a9b2f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd9335: send SSR notification to soundwire"

parents f8c79459 8a1ab580
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -9497,10 +9497,14 @@ static int tasha_device_down(struct wcd9xxx *wcd9xxx)
	struct snd_soc_codec *codec;
	struct tasha_priv *priv;
	int count;
	int i = 0;

	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);
	for (i = 0; i < priv->nr; i++)
		swrm_wcd_notify(priv->swr_ctrl_data[i].swr_pdev,
				SWR_DEVICE_DOWN, NULL);
	snd_soc_card_change_online_state(codec->component.card, 0);
	for (count = 0; count < NUM_CODEC_DAIS; count++)
		priv->dai[count].bus_down_in_recovery = true;