summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-11-07 22:29:10 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-07 22:29:09 -0800
commitec7b10c39a07f7afc0ee436fb6072afa721fdde3 (patch)
treec86a1800c55705e9baaf932f1b263f4a5c9246c1
parente6db870831157d6e05fbeb8d79ced445f79e72c6 (diff)
parentcc895413836818cd0e990f8926673a5e5c1b6d17 (diff)
Merge "ASoC: msm: q6dspv2: wake up tasks when ADSP goes down"
-rw-r--r--sound/soc/msm/qdsp6v2/q6asm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/msm/qdsp6v2/q6asm.c b/sound/soc/msm/qdsp6v2/q6asm.c
index 0ea94cb52bfb..2874a334dfdd 100644
--- a/sound/soc/msm/qdsp6v2/q6asm.c
+++ b/sound/soc/msm/qdsp6v2/q6asm.c
@@ -1658,8 +1658,10 @@ static int32_t q6asm_callback(struct apr_client_data *data, void *priv)
ac->apr = NULL;
atomic_set(&ac->time_flag, 0);
atomic_set(&ac->cmd_state, 0);
+ atomic_set(&ac->mem_state, 0);
wake_up(&ac->time_wait);
wake_up(&ac->cmd_wait);
+ wake_up(&ac->mem_wait);
mutex_unlock(&ac->cmd_lock);
return 0;
}