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

Commit 2f37c574 authored by Eric Laurent's avatar Eric Laurent Committed by Banajit Goswami
Browse files

ASoC: msm: handle write done events in pause state



If a write done event is received when the compress driver
is in paused state, treat it as an underrun.

Change-Id: I56ca867983b9139c04d135276da7344ac912065e
Signed-off-by: default avatarHaynes Mathew George <hgeorge@codeaurora.org>
Signed-off-by: default avatarEric Laurent <elaurent@google.com>
Git-commit: 6b9c3272087127fda41ed65ee7f8536ad9748383
Git-repo: https://android.googlesource.com/kernel/msm


Signed-off-by: default avatarDhananjay Kumar <dhakumar@codeaurora.org>
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent 2a9c6ba1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -206,6 +206,9 @@ static void compr_event_handler(uint32_t opcode,
		snd_compr_fragment_elapsed(cstream);

		if (!atomic_read(&prtd->start)) {
			/* Writes must be restarted from _copy() */
			pr_debug("write_done received while not started, treat as xrun");
			atomic_set(&prtd->xrun, 1);
			spin_unlock_irq(&prtd->lock);
			break;
		}