hikey960: Enable Audio DSP in Audio HAL
Enable XAF in Audio HAL if TARGET_ENABLE_DSP_DEVICE=true
is set in the build
Disable host side XAF logs
To see DSP logs push device/linaro/hifi/xaf/host-apf/tools/dhifimesg
to /system/bin
then run adb shell dhifimesg
Bug: 64395692
Test: Manual
Change-Id: Iff35ac78deb39c1801a5318074eb0fed28506937
Signed-off-by: Niranjan Yadla <nyadla@cadence.com>
diff --git a/audio/Android.mk b/audio/Android.mk
index fe091a8..c1ba564 100644
--- a/audio/Android.mk
+++ b/audio/Android.mk
@@ -33,5 +33,16 @@
system/media/audio_utils/include \
system/media/audio_effects/include
+ifeq ($(TARGET_ENABLE_DSP_DEVICE), true)
+LOCAL_CFLAGS += -DENABLE_XAF_DSP_DEVICE
+LOCAL_C_INCLUDES += \
+ $(LOCAL_PATH)/../hifi/xaf/host-apf/include \
+ $(LOCAL_PATH)/../hifi/xaf/host-apf/include/os/android \
+ $(LOCAL_PATH)/../hifi/xaf/host-apf/include/sys/fio\
+ $(LOCAL_PATH)/../hifi/xaf/host-apf/include/audio \
+ $(LOCAL_PATH)/../hifi/xaf/host-apf/utest/include
+
+LOCAL_STATIC_LIBRARIES := libxtensa_proxy
+endif
include $(BUILD_SHARED_LIBRARY)