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

Commit 05dab022 authored by ftong's avatar ftong
Browse files

asoc: ignore afe resp status to avoid 2s timeout



When afe is inactive, it can cause afe_state to be negative and lead to timeout.
Ignore afe response in such scenario to avoid timeout.

Change-Id: I1191cbe40920bfdcb3ec7e8de76f9210923f40a2
Signed-off-by: default avatarftong <quic_ftong@quicinc.com>
parent 41a9d370
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -684,13 +684,7 @@ static void av_dev_drift_afe_cb_handler(uint32_t opcode, uint32_t *payload,
		return;
	}

	if (!this_afe.av_dev_drift_resp.status) {
	atomic_set(&this_afe.state, 0);
	} else {
		pr_debug("%s: av_dev_drift_resp status: %d\n", __func__,
			 this_afe.av_dev_drift_resp.status);
		atomic_set(&this_afe.state, -1);
	}
}

static void doa_tracking_mon_afe_cb_handler(uint32_t opcode, uint32_t *payload,