hal: adsprpcd: Prevent fastrpc daemon from exiting during SSR
During SSR fastrpc daemon exits leading to restart of audioadsprpcd_audiopd
with delay of apprx. 5 seconds. During this delay if any dyanmic modules are
required by audio-usecase won't be loaded leading to usecase failure.
Change-Id: I8ae475a8b7d5af01ab7f15fc61fb4401984346dc
diff --git a/adsprpcd/adsprpcd.c b/adsprpcd/adsprpcd.c
index 96f16ec..a44c013 100644
--- a/adsprpcd/adsprpcd.c
+++ b/adsprpcd/adsprpcd.c
@@ -65,8 +65,7 @@
VERIFY_EPRINTF("audio adsp daemon error %s", dlerror());
}
if (nErr == AEE_ECONNREFUSED) {
- VERIFY_EPRINTF("fastRPC device driver is disabled, daemon exiting...");
- break;
+ VERIFY_EPRINTF("fastRPC device driver is disabled, retrying...");
}
VERIFY_EPRINTF("audio adsp daemon will restart after 25ms...");
usleep(25000);