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

Commit b91472be authored by Ramprasad Katkam's avatar Ramprasad Katkam Committed by Gerrit - the friendly Code Review server
Browse files

ipc: apr: Handle ssr return code from glink



Glink may receive ssr reset event before audio has received.
Handle the ssr return code from glink as ssr reset event
at apr.

Change-Id: I62058ad56bece93cac52f26446e9c780cba3c633
Signed-off-by: default avatarRamprasad Katkam <katkam@codeaurora.org>
parent e039f16f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -419,8 +419,13 @@ int apr_send_pkt(void *handle, uint32_t *buf)
			rc = -EINVAL;
		}
	} else {
		pr_err("%s: Write APR pkt failed with error %d\n",
		pr_err_ratelimited("%s: Write APR pkt failed with error %d\n",
			__func__, rc);
		if (rc == -ECONNRESET) {
			pr_err_ratelimited("%s: Received reset error from tal\n",
					__func__);
			rc = -ENETRESET;
		}
	}
	spin_unlock_irqrestore(&svc->w_lock, flags);