mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue