Merge "ASoC: wcd-dsp-mgr: fix restart logic when codec comes back online"

This commit is contained in:
Linux Build Service Account 2016-10-27 15:49:06 -07:00 committed by Gerrit - the friendly Code Review server
commit c60241fc75

View file

@ -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);
}