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 <mengw@codeaurora.org>
This commit is contained in:
parent
dec796e30a
commit
2bf206021d
@ -949,6 +949,8 @@ static int32_t afe_callback(struct apr_client_data *data, void *priv)
|
|||||||
if (this_afe.apr) {
|
if (this_afe.apr) {
|
||||||
apr_reset(this_afe.apr);
|
apr_reset(this_afe.apr);
|
||||||
atomic_set(&this_afe.state, 0);
|
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;
|
this_afe.apr = NULL;
|
||||||
rtac_set_afe_handle(this_afe.apr);
|
rtac_set_afe_handle(this_afe.apr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user