asoc: wcd934x: set bus down flag right when notification reaches
Set bus_down_in_recovery flag as soon as possible when BUS down notification reaches codec driver. This is to avoid any unwanted slimbus transaction while BUS is still not recovered. Change-Id: I77917975372bf51e6aa881cbfc63c479478db375 Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
这个提交包含在:

提交者
Gerrit - the friendly Code Review server

父节点
f6bc7130d2
当前提交
15fffc6b9b
@@ -9203,13 +9203,13 @@ static int tavil_device_down(struct wcd9xxx *wcd9xxx)
|
||||
|
||||
codec = (struct snd_soc_codec *)(wcd9xxx->ssr_priv);
|
||||
priv = snd_soc_codec_get_drvdata(codec);
|
||||
for (count = 0; count < NUM_CODEC_DAIS; count++)
|
||||
priv->dai[count].bus_down_in_recovery = true;
|
||||
if (priv->swr.ctrl_data)
|
||||
swrm_wcd_notify(priv->swr.ctrl_data[0].swr_pdev,
|
||||
SWR_DEVICE_DOWN, NULL);
|
||||
tavil_dsd_reset(priv->dsd_config);
|
||||
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;
|
||||
wcd_dsp_ssr_event(priv->wdsp_cntl, WCD_CDC_DOWN_EVENT);
|
||||
wcd_resmgr_set_sido_input_src_locked(priv->resmgr,
|
||||
SIDO_SOURCE_INTERNAL);
|
||||
|
在新工单中引用
屏蔽一个用户