Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bf20602 authored by Meng Wang's avatar Meng Wang
Browse files

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: default avatarMeng Wang <mengw@codeaurora.org>
parent dec796e3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
		}