blob: c12db2d010e38c809a6ab42da1550cbe87d44976 [file] [log] [blame]
Cyan_Hsieh8e9b92d2019-01-22 18:22:57 +08001ifneq ($(filter msm8974 msm8226 msm8084 msm8992 msm8994 msm8996 msm8909 msm8998 sdm845 sdm710 msmnile,$(TARGET_BOARD_PLATFORM)),)
Haynes Mathew George41f86652014-06-17 14:22:15 -07002
3LOCAL_PATH:= $(call my-dir)
4
Chih-Hung Hsiehaa016a52017-11-06 11:39:27 -08005qcom_post_proc_common_cflags := \
6 -O2 -fvisibility=hidden \
7 -Wall -Werror \
8 -Wno-unused-function \
9 -Wno-unused-variable \
10
Haynes Mathew George41f86652014-06-17 14:22:15 -070011include $(CLEAR_VARS)
12
13LOCAL_SRC_FILES:= \
14 bundle.c \
15 equalizer.c \
16 bass_boost.c \
17 virtualizer.c \
18 reverb.c \
19 effect_api.c
20
Chih-Hung Hsiehaa016a52017-11-06 11:39:27 -080021LOCAL_CFLAGS += $(qcom_post_proc_common_cflags)
Haynes Mathew George41f86652014-06-17 14:22:15 -070022
23LOCAL_SHARED_LIBRARIES := \
24 libcutils \
25 liblog \
26 libtinyalsa
27
28LOCAL_MODULE_TAGS := optional
Diego Wilson8c83e0a2017-03-17 15:29:43 -070029LOCAL_MODULE_OWNER := qcom
30LOCAL_PROPRIETARY_MODULE := true
Haynes Mathew George41f86652014-06-17 14:22:15 -070031
Ajay Dudani89541032015-03-30 17:39:24 -070032LOCAL_MODULE_RELATIVE_PATH := soundfx
Haynes Mathew George41f86652014-06-17 14:22:15 -070033LOCAL_MODULE:= libqcompostprocbundle
34
35LOCAL_C_INCLUDES := \
36 external/tinyalsa/include \
Kevin Rocardbae0dcb2018-01-24 06:13:37 +000037 $(call include-path-for, audio-effects)
Haynes Mathew George41f86652014-06-17 14:22:15 -070038
Vijay Venkatraman0c87ff02017-03-28 11:32:30 -070039LOCAL_HEADER_LIBRARIES += libhardware_headers
40LOCAL_HEADER_LIBRARIES += libsystem_headers
razorloves50600552018-10-03 11:09:43 -050041
42LOCAL_HEADER_LIBRARIES += generated_kernel_headers
43
Haynes Mathew George41f86652014-06-17 14:22:15 -070044include $(BUILD_SHARED_LIBRARY)
vivek mehta1a9b7c02015-06-25 11:49:38 -070045endif
46
47################################################################################
48
Cyan_Hsieh8e9b92d2019-01-22 18:22:57 +080049ifneq ($(filter msm8992 msm8994 msm8996 msm8909 msm8998 sdm845 sdm710 msmnile,$(TARGET_BOARD_PLATFORM)),)
vivek mehta1a9b7c02015-06-25 11:49:38 -070050
51include $(CLEAR_VARS)
52
David Lin07a3fe92017-04-12 14:16:00 -070053LOCAL_CFLAGS := -DLIB_AUDIO_HAL="audio.primary."$(TARGET_BOARD_PLATFORM)".so"
vivek mehta1a9b7c02015-06-25 11:49:38 -070054
55LOCAL_SRC_FILES:= \
56 volume_listener.c
57
Chih-Hung Hsiehaa016a52017-11-06 11:39:27 -080058LOCAL_CFLAGS += $(qcom_post_proc_common_cflags)
vivek mehta1a9b7c02015-06-25 11:49:38 -070059
60LOCAL_SHARED_LIBRARIES := \
61 libcutils \
62 liblog \
63 libdl
64
65LOCAL_MODULE_RELATIVE_PATH := soundfx
66LOCAL_MODULE:= libvolumelistener
Diego Wilson8c83e0a2017-03-17 15:29:43 -070067LOCAL_MODULE_OWNER := qcom
68LOCAL_PROPRIETARY_MODULE := true
vivek mehta1a9b7c02015-06-25 11:49:38 -070069
70LOCAL_C_INCLUDES := \
vivek mehtaa8d7c922016-05-25 14:40:44 -070071 hardware/qcom/audio/hal \
Kevin Rocardbae0dcb2018-01-24 06:13:37 +000072 $(call include-path-for, audio-effects)
vivek mehta1a9b7c02015-06-25 11:49:38 -070073
Vijay Venkatraman0c87ff02017-03-28 11:32:30 -070074LOCAL_HEADER_LIBRARIES += libhardware_headers
75LOCAL_HEADER_LIBRARIES += libsystem_headers
razorloves50600552018-10-03 11:09:43 -050076
77LOCAL_HEADER_LIBRARIES += generated_kernel_headers
78
vivek mehta1a9b7c02015-06-25 11:49:38 -070079include $(BUILD_SHARED_LIBRARY)
Eric Laurentf7c64682014-08-07 09:23:11 -070080
Ajay Dudani89541032015-03-30 17:39:24 -070081endif
jasmine cha270b7762018-03-30 15:41:33 +080082
83################################################################################
84ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true)
85
86include $(CLEAR_VARS)
87
88LOCAL_CFLAGS := -D HAL_LIB_NAME=\"audio.primary."$(TARGET_BOARD_PLATFORM)".so\"
89
90LOCAL_SRC_FILES:= \
91 ma_listener.c
92
93LOCAL_CFLAGS += $(qcom_post_proc_common_cflags)
94
95LOCAL_SHARED_LIBRARIES := \
96 libcutils \
97 liblog \
98 libdl
99
100LOCAL_MODULE_RELATIVE_PATH := soundfx
101LOCAL_MODULE:= libmalistener
102LOCAL_MODULE_OWNER := google
103LOCAL_PROPRIETARY_MODULE := true
104
105LOCAL_C_INCLUDES := \
106 hardware/qcom/audio/hal \
107 system/media/audio/include/system \
108 $(call include-path-for, audio-effects)
109
110LOCAL_HEADER_LIBRARIES += libhardware_headers
111LOCAL_HEADER_LIBRARIES += libsystem_headers
razorloves50600552018-10-03 11:09:43 -0500112
113LOCAL_HEADER_LIBRARIES += generated_kernel_headers
114
jasmine cha270b7762018-03-30 15:41:33 +0800115include $(BUILD_SHARED_LIBRARY)
116
117endif