diff options
author | Ola Jeppsson <ola@snap.com> | 2021-10-18 10:43:40 +0200 |
---|---|---|
committer | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2021-10-19 09:49:20 +0100 |
commit | 2487741dd6904c2b8c063ed477b3420c48e293a5 (patch) | |
tree | 5cae975dbfd01cee9e9a3d91de26e074c3de3c5c | |
parent | 68590e2bc2a53bcebfe40d176ee36198efe92f72 (diff) |
apps_user: Fix applications using sDSP getting stuck at exit
Signed-off-by: Ola Jeppsson <ola@snap.com>
Acked-by: Heinrich Fink <hfink@snap.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
-rw-r--r-- | src/fastrpc_apps_user.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fastrpc_apps_user.c b/src/fastrpc_apps_user.c index 038fa80..ad68cd5 100644 --- a/src/fastrpc_apps_user.c +++ b/src/fastrpc_apps_user.c @@ -1339,8 +1339,11 @@ static void domain_deinit(int domain) { } else { adsp_current_process_exit(); } - - listener_android_domain_deinit(domain); + /* The exit code above doesn't seem to work for the sensor DSP. + * We get stuck waiting for the listener thread. */ + if (domain != SDSP_DOMAIN_ID) { + listener_android_domain_deinit(domain); + } deinitFileWatcher(domain); fastrpc_perf_deinit(); fastrpc_latency_deinit(&hlist[domain].qos); |