ASoC: msm: treat partial drain like full drain
Change-Id: I3a9d7e7a62f0eefb941b68d0ee40657998549f76 Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org> Signed-off-by: Eric Laurent <elaurent@google.com> Git-commit: 1f1aac6eee5e080e9bd70bd6d56da3b4435273e8 Git-repo: https://android.googlesource.com/kernel/msm Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
This commit is contained in:
parent
21f7a9a5eb
commit
5871bd83cf
1 changed files with 3 additions and 1 deletions
|
@ -648,15 +648,17 @@ static int msm_compr_trigger(struct snd_compr_stream *cstream, int cmd)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pr_debug("%s: CMD_EOS\n", __func__);
|
pr_debug("%s: CMD_EOS\n", __func__);
|
||||||
|
|
||||||
prtd->cmd_ack = 0;
|
prtd->cmd_ack = 0;
|
||||||
q6asm_cmd_nowait(prtd->audio_client, CMD_EOS);
|
q6asm_cmd_nowait(prtd->audio_client, CMD_EOS);
|
||||||
|
|
||||||
|
/*
|
||||||
if (cmd == SND_COMPR_TRIGGER_PARTIAL_DRAIN) {
|
if (cmd == SND_COMPR_TRIGGER_PARTIAL_DRAIN) {
|
||||||
pr_err("PARTIAL DRAIN, do not wait for EOS ack");
|
pr_err("PARTIAL DRAIN, do not wait for EOS ack");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/* Wait indefinitely for DRAIN. Flush can also signal this*/
|
/* Wait indefinitely for DRAIN. Flush can also signal this*/
|
||||||
rc = wait_event_interruptible(prtd->eos_wait,
|
rc = wait_event_interruptible(prtd->eos_wait,
|
||||||
|
|
Loading…
Add table
Reference in a new issue