mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
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: Ramprasad Katkam <katkam@codeaurora.org>
This commit is contained in:
parent
e039f16fa4
commit
b91472bedb
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue