diff options
| author | Sudheer Papothi <spapothi@codeaurora.org> | 2016-10-18 07:18:05 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-24 15:22:02 -0700 |
| commit | d6a2581efdcc463a0bf76c8b16014ee619164f63 (patch) | |
| tree | 00e434553444f6dc9497b42fd9d68a3646d615f1 | |
| parent | 8bfdc09623f923660ffcab9360fc8695211cd797 (diff) | |
ASoC: wcd934x: Trigger codec DSP subsystem restart
When there is a fatal error on ADSP, audio subsystem restart(SSR)
gets triggered. As a part of audio SSR, trigger codec DSP
SSR to reset the codec DSP state.
Change-Id: Id9cbda04a4c36070e52919d3a34ebc871ac22a8e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
| -rw-r--r-- | sound/soc/codecs/wcd934x/wcd934x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wcd934x/wcd934x.c b/sound/soc/codecs/wcd934x/wcd934x.c index dc557da07186..99cfa63ae67a 100644 --- a/sound/soc/codecs/wcd934x/wcd934x.c +++ b/sound/soc/codecs/wcd934x/wcd934x.c @@ -8552,6 +8552,7 @@ static int tavil_device_down(struct wcd9xxx *wcd9xxx) 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); priv->resmgr->sido_input_src = SIDO_SOURCE_INTERNAL; return 0; @@ -8655,6 +8656,7 @@ static int tavil_post_reset_cb(struct wcd9xxx *wcd9xxx) * can be released allowing the codec to go to SVS2. */ tavil_vote_svs(tavil, false); + wcd_dsp_ssr_event(tavil->wdsp_cntl, WCD_CDC_UP_EVENT); done: mutex_unlock(&tavil->codec_mutex); |
