mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
ipc: apr: set q6 state down when ECONNRESET from TAL
When SSR happens, APR state can update to DOWN immediately which ensures avoid continuous retry for PCM open from userspace as audio clients check APR state at pcm_open and return ENETRESET if APR is down. Change-Id: I60a6d217786b3d610b70adbd12d0e5f2a7c12205 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
parent
2711643ba7
commit
35d2276eac
1 changed files with 2 additions and 0 deletions
|
|
@ -432,6 +432,8 @@ int apr_send_pkt(void *handle, uint32_t *buf)
|
|||
if (rc == -ECONNRESET) {
|
||||
pr_err_ratelimited("%s: Received reset error from tal\n",
|
||||
__func__);
|
||||
if (svc->dest_id == APR_DEST_QDSP6)
|
||||
apr_set_q6_state(APR_SUBSYS_DOWN);
|
||||
rc = -ENETRESET;
|
||||
}
|
||||
if (rc == -EAGAIN || rc == -ETIMEDOUT) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue