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

Commit 91c33e6c authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm: treat partial drain like full drain" into msm-4.8

parents 7dec67bd dbfaddbc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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,