summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2013-09-13 09:24:43 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:10:42 -0700
commit5871bd83cf5bac5dcf568b899ed37f9ceb024b49 (patch)
tree38164f08d094ea904d07ed56a57e5b68a4881264
parent21f7a9a5eb53a2c51264253c1d74b7baf13c30d3 (diff)
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>
-rw-r--r--sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
index 6243239c5e09..86adba6da2ce 100644
--- a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
+++ b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
@@ -648,15 +648,17 @@ static int msm_compr_trigger(struct snd_compr_stream *cstream, int cmd)
break;
}
-
pr_debug("%s: CMD_EOS\n", __func__);
+
prtd->cmd_ack = 0;
q6asm_cmd_nowait(prtd->audio_client, CMD_EOS);
+/*
if (cmd == SND_COMPR_TRIGGER_PARTIAL_DRAIN) {
pr_err("PARTIAL DRAIN, do not wait for EOS ack");
break;
}
+*/
/* Wait indefinitely for DRAIN. Flush can also signal this*/
rc = wait_event_interruptible(prtd->eos_wait,