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

Commit a7fdaa96 authored by Banajit Goswami's avatar Banajit Goswami
Browse files

ASoC: msm: qdsp6v2: Use EOS status flag for TRIGGER DRAIN



Update TRIGGER DRAIN function to use the EOS specific status
flag while waiting for ACK of EOS command.

Change-Id: I77bdad3e61ede3651c712d2d0d8b8a487b1a0a11
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent 6a27fa9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1602,7 +1602,7 @@ static int msm_compr_trigger(struct snd_compr_stream *cstream, int cmd)

		/* Wait indefinitely for  DRAIN. Flush can also signal this*/
		rc = wait_event_interruptible(prtd->eos_wait,
						(prtd->cmd_ack ||
						(prtd->eos_ack ||
						prtd->cmd_interrupt ||
						atomic_read(&prtd->error)));