hal: add support to override volume gain to step mapping table
- if customer mapping is added in platform info file, use that
- in absence of customer table use default mapping
CRs-Fixed: 1089771
Change-Id: I4bf8bcf1913f16ad6298ff1f3fa5dd649c889b2a
diff --git a/post_proc/Android.mk b/post_proc/Android.mk
index 01805af..7e507d9 100644
--- a/post_proc/Android.mk
+++ b/post_proc/Android.mk
@@ -8,13 +8,13 @@
endif
LOCAL_SRC_FILES:= \
- bundle.c \
- equalizer.c \
- bass_boost.c \
- virtualizer.c \
- reverb.c \
- effect_api.c \
- effect_util.c
+ bundle.c \
+ equalizer.c \
+ bass_boost.c \
+ virtualizer.c \
+ reverb.c \
+ effect_api.c \
+ effect_util.c
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
LOCAL_CFLAGS += -DHW_ACCELERATED_EFFECTS
@@ -33,10 +33,10 @@
endif
LOCAL_SHARED_LIBRARIES := \
- libcutils \
- liblog \
- libtinyalsa \
- libdl
+ libcutils \
+ liblog \
+ libtinyalsa \
+ libdl
LOCAL_MODULE_TAGS := optional
@@ -46,9 +46,9 @@
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_C_INCLUDES := \
- external/tinyalsa/include \
+ external/tinyalsa/include \
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
- $(call include-path-for, audio-effects)
+ $(call include-path-for, audio-effects)
include $(BUILD_SHARED_LIBRARY)
@@ -101,7 +101,13 @@
LOCAL_MODULE:= libvolumelistener
LOCAL_C_INCLUDES := \
- $(call include-path-for, audio-effects)
+ hardware/qcom/audio/hal \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
+ external/tinyalsa/include \
+ $(call include-path-for, audio-effects) \
+ $(call include-path-for, audio-route) \
+ hardware/qcom/audio/hal/audio_extn \
+ external/tinycompress/include
include $(BUILD_SHARED_LIBRARY)