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

Commit 910c1c1c authored by E V Ravi's avatar E V Ravi Committed by Gerrit - the friendly Code Review server
Browse files

audio-kernel :Send response to rtac module for cmd_state_pp in non waiting



APPS sends timeout due to mishandling of callback event between RTC and ASM
driver even if they get callback from ADSP. Check for the cmd_state_pp in
ASM before RTAC callback.

Change-Id: I78cb6735b19b53a44f550948efd05446ff8950ad
Signed-off-by: default avatarE V Ravi <evenka@codeaurora.org>
parent e2c2fd50
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2138,9 +2138,12 @@ static int32_t q6asm_callback(struct apr_client_data *data, void *priv)
		switch (payload[0]) {
		case ASM_STREAM_CMD_SET_PP_PARAMS_V2:
		case ASM_STREAM_CMD_SET_PP_PARAMS_V3:
			//cmd_state_pp : wait=-1 , non wait=0
			if (atomic_read(&ac->cmd_state_pp) != -1) {
				if (rtac_make_asm_callback(ac->session, payload,
					data->payload_size))
					break;
			}
		case ASM_SESSION_CMD_PAUSE:
		case ASM_SESSION_CMD_SUSPEND:
		case ASM_DATA_CMD_EOS: