ASoC: msm: qdsp6: making flush call as synchronous

Making flush call as synchronous, it responds to user
only when it receives acknowledgement  from LPASS or
maximum wait time out.

Change-Id: I1c743cc3f2a11934dc5c15323ac4cadfd7e5f210
Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
This commit is contained in:
Jaiju Yesudasan 2016-08-18 15:50:50 +05:30 committed by ShevT
parent 692c3477ae
commit 137dd6b567
1 changed files with 1 additions and 0 deletions

View File

@ -4231,6 +4231,7 @@ int q6asm_cmd(struct audio_client *ac, int cmd)
case CMD_FLUSH:
pr_debug("%s:CMD_FLUSH\n", __func__);
hdr.opcode = ASM_STREAM_CMD_FLUSH;
atomic_set(&ac->cmd_close_state, 1);
state = &ac->cmd_state;
break;
case CMD_OUT_FLUSH: