diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-10-27 15:49:06 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-27 15:49:05 -0700 |
| commit | c60241fc7535cd247e68cc941abc498f2206ed11 (patch) | |
| tree | efdf1791abd5bdba9c8a6c53b2eb014a459a334d | |
| parent | 59ba1d179c8403500ef13f3fc25d1c2accf12ca5 (diff) | |
| parent | 06f5b93af073e3b4d2437533e7054ff2ad1004a5 (diff) | |
Merge "ASoC: wcd-dsp-mgr: fix restart logic when codec comes back online"
| -rw-r--r-- | sound/soc/codecs/wcd-dsp-mgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wcd-dsp-mgr.c b/sound/soc/codecs/wcd-dsp-mgr.c index d9d413f0a80a..f51301d1ab08 100644 --- a/sound/soc/codecs/wcd-dsp-mgr.c +++ b/sound/soc/codecs/wcd-dsp-mgr.c @@ -717,8 +717,8 @@ static void wdsp_ssr_work_fn(struct work_struct *work) */ WDSP_CLEAR_STATUS(wdsp, WDSP_STATUS_CODE_DLOADED); - /* If codec went down, then all components must be re-initialized */ - if (wdsp->ssr_type == WDSP_SSR_TYPE_CDC_DOWN) { + /* If codec restarted, then all components must be re-initialized */ + if (wdsp->ssr_type == WDSP_SSR_TYPE_CDC_UP) { wdsp_deinit_components(wdsp); WDSP_CLEAR_STATUS(wdsp, WDSP_STATUS_INITIALIZED); } |
