summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2020-10-09 18:34:38 +0200
committeralk3pInjection <webmaster@raspii.tech>2022-09-05 19:30:35 +0800
commitc258a9af382ba30e501743bb938fcdc9e463de01 (patch)
tree58f72d34e49753ad79a7750622ef3a957f0a5e4d
parent57ff0f2989485d5ebf5615cf866232b1679ff581 (diff)
audio: adsprpcd: Drop dependency on proprietary headers and fix build errors
Change-Id: Ibbcd009333337cd41f2e6bf70391914b75f8a3ba
-rw-r--r--adsprpcd/Android.bp2
-rw-r--r--adsprpcd/adsprpcd.c9
2 files changed, 6 insertions, 5 deletions
diff --git a/adsprpcd/Android.bp b/adsprpcd/Android.bp
index 7e6a8e7f..f91ad2f3 100644
--- a/adsprpcd/Android.bp
+++ b/adsprpcd/Android.bp
@@ -3,8 +3,6 @@ cc_binary {
srcs: ["adsprpcd.c"],
- header_libs: ["libfastrpcshippable_headers"],
-
shared_libs: [
"liblog",
"libdl",
diff --git a/adsprpcd/adsprpcd.c b/adsprpcd/adsprpcd.c
index a44c0133..89004e78 100644
--- a/adsprpcd/adsprpcd.c
+++ b/adsprpcd/adsprpcd.c
@@ -31,17 +31,21 @@
#define VERIFY_PRINT_ERROR
#endif
+#define VERIFY_EPRINTF ALOGE
+#define VERIFY_IPRINTF ALOGI
+
#include <stdio.h>
#include <dlfcn.h>
#include <unistd.h>
-#include "verify.h"
-#include "AEEStdErr.h"
+#include <log/log.h>
#ifndef ADSP_DEFAULT_LISTENER_NAME
#define ADSP_DEFAULT_LISTENER_NAME "libadsp_default_listener.so"
#endif
+#define AEE_ECONNREFUSED 0x72
+
typedef int (*adsp_default_listener_start_t)(int argc, char *argv[]);
int main(int argc, char *argv[]) {
@@ -71,6 +75,5 @@ int main(int argc, char *argv[]) {
usleep(25000);
}
VERIFY_EPRINTF("audio adsp daemon exiting %x", nErr);
-bail:
return nErr;
}