From 9f86d7ad621d87c45a68174de990adb70993b653 Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Mon, 17 Sep 2018 15:12:07 -0700 Subject: [PATCH] hal: post_proc: make definition of instance id independent Definition of instance id is misplaced inside definition of hardware accelerated effects in makefile. Moving definition of instance id outside to break the dependency. When instance id flag is disabled, it causes acdb_audio_cal_cfg_t structure size mismatch between HAL and ACDB loader. CRs-Fixed: 2315791 Change-Id: Iedb50b10f03193c67494cdfc30223f1bd93a8c90 --- post_proc/Android.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/post_proc/Android.mk b/post_proc/Android.mk index d9b367fc..637a1f36 100644 --- a/post_proc/Android.mk +++ b/post_proc/Android.mk @@ -49,6 +49,10 @@ ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true) LOCAL_STATIC_LIBRARIES += libprofile_rt endif +ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true) + LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED +endif + LOCAL_CFLAGS+= -O2 -fvisibility=hidden ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true)