2018-11-27 06:46:45 +00:00
|
|
|
ifneq ($(AUDIO_USE_STUB_HAL), true)
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2019-01-30 00:42:45 +00:00
|
|
|
LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"
|
2018-01-23 01:39:48 +00:00
|
|
|
LOCAL_CFLAGS += -Wno-unused-variable
|
|
|
|
LOCAL_CFLAGS += -Wno-sign-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-parameter
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-label
|
|
|
|
LOCAL_CFLAGS += -Wno-gnu-designator
|
|
|
|
LOCAL_CFLAGS += -Wno-typedef-redefinition
|
|
|
|
LOCAL_CFLAGS += -Wno-shorten-64-to-32
|
|
|
|
LOCAL_CFLAGS += -Wno-tautological-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-function
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-local-typedef
|
|
|
|
LOCAL_CFLAGS += -Wno-format
|
2018-01-31 15:59:03 +00:00
|
|
|
LOCAL_CFLAGS += -Wno-unused-value
|
2018-12-18 22:23:57 +00:00
|
|
|
LOCAL_CFLAGS += -Wall
|
|
|
|
LOCAL_CFLAGS += -Werror
|
2018-01-23 01:39:48 +00:00
|
|
|
|
2014-05-16 19:10:55 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
|
2014-04-04 00:47:22 +00:00
|
|
|
LOCAL_CFLAGS += -DAFE_PROXY_ENABLED
|
|
|
|
endif
|
|
|
|
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_SRC_FILES:= \
|
2016-10-27 19:03:18 +00:00
|
|
|
bundle.c \
|
|
|
|
equalizer.c \
|
|
|
|
bass_boost.c \
|
|
|
|
virtualizer.c \
|
|
|
|
reverb.c \
|
|
|
|
effect_api.c \
|
2019-07-05 03:20:28 +00:00
|
|
|
effect_util.c
|
2015-07-01 23:57:32 +00:00
|
|
|
|
2019-01-30 00:42:45 +00:00
|
|
|
# HW_ACCELERATED has been disabled by default since msm8996. File doesn't
|
|
|
|
# compile cleanly on tip so don't want to include it, but keeping this
|
|
|
|
# as a reference.
|
|
|
|
# LOCAL_SRC_FILES += hw_accelerator.c
|
2015-09-04 08:14:59 +00:00
|
|
|
|
2018-09-17 22:12:07 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true)
|
|
|
|
LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED
|
|
|
|
endif
|
|
|
|
|
2018-11-14 07:55:08 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
|
|
|
|
LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
|
|
|
|
LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
|
|
|
|
LOCAL_STATIC_LIBRARIES += libprofile_rt
|
|
|
|
endif
|
|
|
|
|
2018-09-17 22:12:07 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INSTANCE_ID)), true)
|
|
|
|
LOCAL_CFLAGS += -DINSTANCE_ID_ENABLED
|
|
|
|
endif
|
|
|
|
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_CFLAGS+= -O2 -fvisibility=hidden
|
|
|
|
|
2014-11-23 03:34:13 +00:00
|
|
|
ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true)
|
|
|
|
LOCAL_CFLAGS += -DDTS_EAGLE
|
|
|
|
endif
|
|
|
|
|
2018-04-02 15:57:54 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES := libhardware_headers \
|
|
|
|
libsystem_headers \
|
|
|
|
libutils_headers
|
|
|
|
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
2016-10-27 19:03:18 +00:00
|
|
|
libcutils \
|
|
|
|
liblog \
|
|
|
|
libtinyalsa \
|
|
|
|
libdl
|
2013-11-13 04:45:15 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
|
2014-05-29 19:48:15 +00:00
|
|
|
LOCAL_MODULE_RELATIVE_PATH := soundfx
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_MODULE:= libqcompostprocbundle
|
2017-06-05 15:35:53 +00:00
|
|
|
LOCAL_VENDOR_MODULE := true
|
2018-12-18 22:23:57 +00:00
|
|
|
LOCAL_MODULE_OWNER := qti
|
2013-11-13 04:45:15 +00:00
|
|
|
|
2014-06-04 02:42:41 +00:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
|
|
|
|
|
2013-11-13 04:45:15 +00:00
|
|
|
LOCAL_C_INCLUDES := \
|
2016-10-27 19:03:18 +00:00
|
|
|
external/tinyalsa/include \
|
2019-01-29 06:54:28 +00:00
|
|
|
vendor/qcom/opensource/audio-hal/primary-hal/hal \
|
2014-01-30 22:03:12 +00:00
|
|
|
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
|
2020-01-08 22:24:17 +00:00
|
|
|
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio \
|
2017-07-15 03:09:36 +00:00
|
|
|
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
|
2019-01-30 00:42:45 +00:00
|
|
|
$(call include-path-for, audio-effects) \
|
|
|
|
vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn/
|
2013-11-13 04:45:15 +00:00
|
|
|
|
2018-03-22 05:48:42 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
|
2018-06-04 15:05:10 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES += audio_kernel_headers
|
2017-09-07 14:16:29 +00:00
|
|
|
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
|
|
|
|
endif
|
|
|
|
|
2018-01-26 00:04:44 +00:00
|
|
|
ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
|
|
|
|
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
|
2018-07-03 11:39:40 +00:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
|
2018-01-26 00:04:44 +00:00
|
|
|
endif
|
|
|
|
|
2020-01-16 02:34:48 +00:00
|
|
|
ifneq ($(filter kona lahaina,$(TARGET_BOARD_PLATFORM)),)
|
2019-08-07 20:33:01 +00:00
|
|
|
LOCAL_SANITIZE := integer_overflow
|
|
|
|
endif
|
2013-11-13 04:45:15 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2014-06-04 02:42:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS)),true)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2018-01-23 01:39:48 +00:00
|
|
|
LOCAL_CFLAGS += -Wno-unused-variable
|
|
|
|
LOCAL_CFLAGS += -Wno-sign-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-parameter
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-label
|
|
|
|
LOCAL_CFLAGS += -Wno-gnu-designator
|
|
|
|
LOCAL_CFLAGS += -Wno-typedef-redefinition
|
|
|
|
LOCAL_CFLAGS += -Wno-shorten-64-to-32
|
|
|
|
LOCAL_CFLAGS += -Wno-tautological-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-function
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-local-typedef
|
|
|
|
LOCAL_CFLAGS += -Wno-format
|
2014-06-04 02:42:41 +00:00
|
|
|
LOCAL_SRC_FILES := EffectsHwAcc.cpp
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
$(call include-path-for, audio-effects)
|
|
|
|
|
2018-04-02 15:57:54 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES := libhardware_headers \
|
|
|
|
libsystem_headers \
|
|
|
|
libutils_headers
|
|
|
|
|
2014-06-04 02:42:41 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
liblog \
|
|
|
|
libeffects
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
|
|
|
|
LOCAL_CFLAGS += -O2 -fvisibility=hidden
|
|
|
|
|
2014-11-19 00:14:41 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)), true)
|
|
|
|
LOCAL_CFLAGS += -DHW_ACC_HPX
|
|
|
|
endif
|
|
|
|
|
2014-06-04 02:42:41 +00:00
|
|
|
LOCAL_MODULE:= libhwacceffectswrapper
|
2017-06-05 15:35:53 +00:00
|
|
|
LOCAL_VENDOR_MODULE := true
|
2014-06-04 02:42:41 +00:00
|
|
|
|
2020-01-16 02:34:48 +00:00
|
|
|
ifneq ($(filter kona lahaina,$(TARGET_BOARD_PLATFORM)),)
|
2019-08-07 20:33:01 +00:00
|
|
|
LOCAL_SANITIZE := unsigned-integer-overflow signed-integer-overflow
|
|
|
|
endif
|
2014-06-04 02:42:41 +00:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
endif
|
2015-06-15 23:16:11 +00:00
|
|
|
|
|
|
|
|
2018-01-23 01:39:48 +00:00
|
|
|
|
2015-06-15 23:16:11 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-01-16 02:34:48 +00:00
|
|
|
ifneq ($(filter msm8992 msm8994 msm8996 msm8998 sdm660 sdm845 apq8098_latv sdm710 msm8953 msm8937 qcs605 sdmshrike msmnile kona lahaina atoll $(MSMSTEPPE) $(TRINKET) lito,$(TARGET_BOARD_PLATFORM)),)
|
2015-06-15 23:16:11 +00:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2017-06-05 15:35:53 +00:00
|
|
|
LOCAL_CFLAGS := -DLIB_AUDIO_HAL="/vendor/lib/hw/audio.primary."$(TARGET_BOARD_PLATFORM)".so"
|
2018-01-23 01:39:48 +00:00
|
|
|
LOCAL_CFLAGS += -Wno-unused-variable
|
|
|
|
LOCAL_CFLAGS += -Wno-sign-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-parameter
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-label
|
|
|
|
LOCAL_CFLAGS += -Wno-gnu-designator
|
|
|
|
LOCAL_CFLAGS += -Wno-typedef-redefinition
|
|
|
|
LOCAL_CFLAGS += -Wno-shorten-64-to-32
|
|
|
|
LOCAL_CFLAGS += -Wno-tautological-compare
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-function
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-local-typedef
|
|
|
|
LOCAL_CFLAGS += -Wno-format
|
2018-12-18 22:23:57 +00:00
|
|
|
LOCAL_CFLAGS += -Wall
|
|
|
|
LOCAL_CFLAGS += -Werror
|
2015-06-15 23:16:11 +00:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
volume_listener.c
|
|
|
|
|
|
|
|
LOCAL_CFLAGS+= -O2 -fvisibility=hidden
|
|
|
|
|
2018-04-02 15:57:54 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES := libhardware_headers \
|
|
|
|
libsystem_headers \
|
|
|
|
libutils_headers
|
|
|
|
|
2015-06-15 23:16:11 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
|
|
|
liblog \
|
2018-12-18 22:23:57 +00:00
|
|
|
libdl \
|
|
|
|
libaudioutils
|
2015-06-15 23:16:11 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE_RELATIVE_PATH := soundfx
|
|
|
|
LOCAL_MODULE:= libvolumelistener
|
2017-06-05 15:35:53 +00:00
|
|
|
LOCAL_VENDOR_MODULE := true
|
2018-12-18 22:23:57 +00:00
|
|
|
LOCAL_MODULE_OWNER := qti
|
2015-06-15 23:16:11 +00:00
|
|
|
|
2017-08-14 19:36:47 +00:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
|
|
|
|
|
2015-06-15 23:16:11 +00:00
|
|
|
LOCAL_C_INCLUDES := \
|
2019-01-16 06:38:01 +00:00
|
|
|
vendor/qcom/opensource/audio-hal/primary-hal/hal \
|
2016-10-27 19:03:18 +00:00
|
|
|
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
|
2020-01-08 22:24:17 +00:00
|
|
|
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/audio \
|
2017-08-14 19:36:47 +00:00
|
|
|
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include \
|
2016-10-27 19:03:18 +00:00
|
|
|
external/tinyalsa/include \
|
|
|
|
$(call include-path-for, audio-effects) \
|
|
|
|
$(call include-path-for, audio-route) \
|
2019-01-16 06:38:01 +00:00
|
|
|
vendor/qcom/opensource/audio-hal/primary-hal/hal/audio_extn \
|
2018-12-18 22:23:57 +00:00
|
|
|
external/tinycompress/include \
|
|
|
|
system/media/audio_utils/include
|
2015-06-15 23:16:11 +00:00
|
|
|
|
2018-03-22 05:48:42 +00:00
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
|
2018-06-04 15:05:10 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES += audio_kernel_headers
|
2017-09-07 14:16:29 +00:00
|
|
|
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
|
|
|
|
endif
|
|
|
|
|
2018-01-26 00:04:44 +00:00
|
|
|
ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
|
|
|
|
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
|
2018-07-03 11:39:40 +00:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
|
2018-01-26 00:04:44 +00:00
|
|
|
endif
|
|
|
|
|
2020-01-16 02:34:48 +00:00
|
|
|
ifneq ($(filter kona lahaina,$(TARGET_BOARD_PLATFORM)),)
|
2019-08-07 20:33:01 +00:00
|
|
|
LOCAL_SANITIZE := integer_overflow
|
|
|
|
endif
|
2015-06-15 23:16:11 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
2018-03-30 07:41:33 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_CFLAGS := -D HAL_LIB_NAME=\"audio.primary."$(TARGET_BOARD_PLATFORM)".so\"
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
2019-01-28 20:08:13 +00:00
|
|
|
ma_listener.c
|
2018-03-30 07:41:33 +00:00
|
|
|
|
|
|
|
LOCAL_CFLAGS += $(qcom_post_proc_common_cflags)
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
2019-01-28 20:08:13 +00:00
|
|
|
libcutils \
|
|
|
|
liblog \
|
|
|
|
libdl
|
2018-03-30 07:41:33 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE_RELATIVE_PATH := soundfx
|
|
|
|
LOCAL_MODULE:= libmalistener
|
|
|
|
LOCAL_MODULE_OWNER := google
|
|
|
|
LOCAL_PROPRIETARY_MODULE := true
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := \
|
2019-01-28 20:08:13 +00:00
|
|
|
hardware/qcom/audio/hal \
|
|
|
|
system/media/audio/include/system \
|
|
|
|
$(call include-path-for, audio-effects)
|
2018-03-30 07:41:33 +00:00
|
|
|
|
|
|
|
LOCAL_HEADER_LIBRARIES += libhardware_headers
|
|
|
|
LOCAL_HEADER_LIBRARIES += libsystem_headers
|
2020-01-16 02:34:48 +00:00
|
|
|
ifneq ($(filter kona lahaina,$(TARGET_BOARD_PLATFORM)),)
|
2019-08-07 20:33:01 +00:00
|
|
|
LOCAL_SANITIZE := integer_overflow
|
|
|
|
endif
|
2018-03-30 07:41:33 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
2015-06-15 23:16:11 +00:00
|
|
|
endif
|
2018-11-27 06:46:45 +00:00
|
|
|
endif
|