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

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

ASoc: msm: Change condition to get session time



Change condition to skip request for session time from DSP
during compress offload.

Change-Id: I0192b1f4059f09a32b8848c40e91eecf3dadf966
Signed-off-by: default avatarHaynes Mathew George <hgeorge@codeaurora.org>
Signed-off-by: default avatarEric Laurent <elaurent@google.com>
Git-commit: b31efc7e185f453da00cedbbad5b59c23560dcde
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 6aa4cd13
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -646,7 +646,11 @@ static int msm_compr_pointer(struct snd_compr_stream *cstream,
	tstamp.copied_total = prtd->copied_total;
	spin_unlock_irq(&prtd->lock);

	if (atomic_read(&prtd->start)) {
	/*
	 * Query timestamp from DSP if some data is with it.
	 * This prevents timeouts.
	 */
	if (prtd->copied_total) {
		rc = q6asm_get_session_time(prtd->audio_client, &timestamp);
		if (rc < 0) {
			pr_err("%s: Get Session Time return value =%lld\n",