From 2bf206021d50b6beba31708bea0e716ec5bb7039 Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Fri, 13 Nov 2020 10:26:48 +0800 Subject: [PATCH] dsp: q6afe: reset clk_state and clk_status when adsp ssr happens Reset this_afe.clk_state and this_afe.clk_status when adsp ssr happens to release the mutex_lock held by audio driver. Change-Id: Ib5b679badb86cfd5cd1549fcfe8cd1ce3886cf82 Signed-off-by: Meng Wang --- dsp/q6afe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dsp/q6afe.c b/dsp/q6afe.c index a5f65fab2b64..6072a3e38a27 100644 --- a/dsp/q6afe.c +++ b/dsp/q6afe.c @@ -949,6 +949,8 @@ static int32_t afe_callback(struct apr_client_data *data, void *priv) if (this_afe.apr) { apr_reset(this_afe.apr); atomic_set(&this_afe.state, 0); + atomic_set(&this_afe.clk_state, 0); + atomic_set(&this_afe.clk_status, ADSP_ENOTREADY); this_afe.apr = NULL; rtac_set_afe_handle(this_afe.apr); }