blob: adee78bbfc323c37fe3c216987c2822fb72b6646 [file] [log] [blame]
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -08001ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
2
3LOCAL_PATH := $(call my-dir)
4
5include $(CLEAR_VARS)
6
7LOCAL_ARM_MODE := arm
8
Ajay Dudanibe3335a2013-08-19 18:47:21 -07009AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
Ravi Kumar Alamanda48c921d2013-10-29 06:07:44 -070010
Banajit Goswami4c0dff22016-03-04 18:31:22 -080011ifneq ($(filter msm8974 msm8226 msm8610 apq8084 msm8994 msm8992 msm8996 msmcobalt,$(TARGET_BOARD_PLATFORM)),)
Ajay Dudanibe3335a2013-08-19 18:47:21 -070012 # B-family platform uses msm8974 code base
13 AUDIO_PLATFORM = msm8974
Ravi Kumar Alamanda48c921d2013-10-29 06:07:44 -070014 MULTIPLE_HW_VARIANTS_ENABLED := true
Mingming Yin8e5a4f62013-10-07 15:23:41 -070015ifneq ($(filter msm8610,$(TARGET_BOARD_PLATFORM)),)
16 LOCAL_CFLAGS := -DPLATFORM_MSM8610
17endif
Shiv Maliyappanahalli34b585f2013-10-01 15:49:05 -070018ifneq ($(filter msm8226,$(TARGET_BOARD_PLATFORM)),)
19 LOCAL_CFLAGS := -DPLATFORM_MSM8x26
20endif
Vidyakumar Athotad9d9ff32013-11-13 11:46:52 -080021ifneq ($(filter apq8084,$(TARGET_BOARD_PLATFORM)),)
22 LOCAL_CFLAGS := -DPLATFORM_APQ8084
23endif
Mingming Yin0e1b2902014-05-19 18:20:59 -070024ifneq ($(filter msm8994,$(TARGET_BOARD_PLATFORM)),)
25 LOCAL_CFLAGS := -DPLATFORM_MSM8994
26endif
Fred Oh68ad1d32014-12-09 13:08:07 -080027ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),)
28 LOCAL_CFLAGS := -DPLATFORM_MSM8994
29endif
Mingming Yin89c6a7f2015-03-24 11:56:14 -070030ifneq ($(filter msm8996,$(TARGET_BOARD_PLATFORM)),)
31 LOCAL_CFLAGS := -DPLATFORM_MSM8996
Banajit Goswami22582e72014-10-15 18:29:34 -070032endif
Banajit Goswami4c0dff22016-03-04 18:31:22 -080033ifneq ($(filter msmcobalt,$(TARGET_BOARD_PLATFORM)),)
34 LOCAL_CFLAGS := -DPLATFORM_MSMCOBALT
35endif
Ajay Dudanibe3335a2013-08-19 18:47:21 -070036endif
37
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053038ifneq ($(filter msm8916 msm8909 msm8952 msm8937 thorium msm8953 msmgold msmfalcon,$(TARGET_BOARD_PLATFORM)),)
Naresh Tannirudb72d1e2014-03-05 17:33:47 +053039 AUDIO_PLATFORM = msm8916
40 MULTIPLE_HW_VARIANTS_ENABLED := true
41 LOCAL_CFLAGS := -DPLATFORM_MSM8916
padarshr04e74812014-09-17 13:34:31 +053042ifneq ($(filter msm8909,$(TARGET_BOARD_PLATFORM)),)
Dhananjay Kumar2bb2fc12014-07-11 19:14:23 +053043 LOCAL_CFLAGS := -DPLATFORM_MSM8909
44endif
Dhananjay Kumard3ab9f42016-07-20 17:05:47 +053045ifneq ($(filter msmfalcon,$(TARGET_BOARD_PLATFORM)),)
46 LOCAL_CFLAGS := -DPLATFORM_MSMFALCON
47endif
Naresh Tannirudb72d1e2014-03-05 17:33:47 +053048endif
Naresh Tanniru8b919ac2014-01-30 19:12:53 +053049
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -080050LOCAL_SRC_FILES := \
51 audio_hw.c \
Shiv Maliyappanahalli34b585f2013-10-01 15:49:05 -070052 voice.c \
Ben Romberger61764e32014-01-10 13:49:02 -080053 platform_info.c \
Ajay Dudanibe3335a2013-08-19 18:47:21 -070054 $(AUDIO_PLATFORM)/platform.c
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -080055
Subhash Chandra Bose Naripeddy19dc03b2014-03-10 14:43:05 -070056LOCAL_SRC_FILES += audio_extn/audio_extn.c \
57 audio_extn/utils.c
Vidyakumar Athota21b3bb92014-04-25 11:08:08 -070058LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
59LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
Apoorv Raghuvanshi9eaf94e2013-10-04 16:13:44 -070060
Mingming Yine5bf8372015-02-26 15:03:10 -080061ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_EDID)),true)
Mingming Yin497419f2015-07-01 16:57:32 -070062 LOCAL_CFLAGS += -DHDMI_EDID
Pradnya Chaphekar4403bd72014-09-09 09:50:01 -070063 LOCAL_SRC_FILES += edid.c
64endif
65
Mingming Yin08c7e312015-03-16 18:10:58 -070066ifeq ($(strip $(AUDIO_USE_LL_AS_PRIMARY_OUTPUT)),true)
67 LOCAL_CFLAGS += -DUSE_LL_AS_PRIMARY_OUTPUT
68endif
69
Mingming Yina6dad602014-05-16 12:10:55 -070070ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true)
Mingming Yin67e34512014-04-03 17:47:22 -070071 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED
72endif
73
Mingming Yina6dad602014-05-16 12:10:55 -070074ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ANC_HEADSET)),true)
Apoorv Raghuvanshi9eaf94e2013-10-04 16:13:44 -070075 LOCAL_CFLAGS += -DANC_HEADSET_ENABLED
76endif
77
Venkata Narendra Kumar Gutta4bd09d02016-01-29 15:31:04 +053078ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HIFI_AUDIO)),true)
79 LOCAL_CFLAGS += -DHIFI_AUDIO_ENABLED
80endif
81
Banajit Goswami20cdd212015-09-11 01:11:30 -070082ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VBAT_MONITOR)),true)
83 LOCAL_CFLAGS += -DVBAT_MONITOR_ENABLED
84endif
85
Mingming Yina6dad602014-05-16 12:10:55 -070086ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FLUENCE)),true)
Venkata Narendra Kumar Gutta88fd0bc2014-03-27 19:47:56 +053087 LOCAL_CFLAGS += -DFLUENCE_ENABLED
88endif
89
Mingming Yina6dad602014-05-16 12:10:55 -070090ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
Apoorv Raghuvanshi9eaf94e2013-10-04 16:13:44 -070091 LOCAL_CFLAGS += -DAFE_PROXY_ENABLED
92endif
93
Sudheer Papothi390bcf32014-12-04 01:25:17 +053094ifeq ($(strip $(AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE)),true)
95 LOCAL_CFLAGS += -DKPI_OPTIMIZE_ENABLED
96endif
97
Mingming Yin12125e82015-10-26 20:40:36 -070098ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true)
99 LOCAL_CFLAGS += -DFM_POWER_OPT
Apoorv Raghuvanshi6e262842013-10-06 14:39:35 -0700100 LOCAL_SRC_FILES += audio_extn/fm.c
101endif
102
Kuirong Wang357e0b12016-07-06 00:29:15 -0700103ifeq ($(strip $(AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO)),true)
Apoorv Raghuvanshi5792d4b2013-10-07 18:40:05 -0700104 LOCAL_CFLAGS += -DUSB_HEADSET_ENABLED
105 LOCAL_SRC_FILES += audio_extn/usb.c
106endif
Mingming Yina6dad602014-05-16 12:10:55 -0700107
108ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HFP)),true)
Vimal Puthanveed5b4d3f12013-11-05 15:57:39 -0800109 LOCAL_CFLAGS += -DHFP_ENABLED
110 LOCAL_SRC_FILES += audio_extn/hfp.c
111endif
Apoorv Raghuvanshi5792d4b2013-10-07 18:40:05 -0700112
Mingming Yina6dad602014-05-16 12:10:55 -0700113ifeq ($(strip $(AUDIO_FEATURE_ENABLED_CUSTOMSTEREO)),true)
Jitendra Singh Naruka9a6a8d42014-02-10 20:07:12 -0800114 LOCAL_CFLAGS += -DCUSTOM_STEREO_ENABLED
115endif
116
Mingming Yina6dad602014-05-16 12:10:55 -0700117ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SSR)),true)
Apoorv Raghuvanshi6178a3f2013-10-19 12:38:54 -0700118 LOCAL_CFLAGS += -DSSR_ENABLED
119 LOCAL_SRC_FILES += audio_extn/ssr.c
Shiv Maliyappanahalli5a10aea2015-07-02 10:36:23 -0700120 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/surround_sound_3mic/
Nagender Telkarca2b4942014-03-24 12:25:42 -0600121 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/common/inc/
Apoorv Raghuvanshi6178a3f2013-10-19 12:38:54 -0700122endif
123
Mingming Yina6dad602014-05-16 12:10:55 -0700124ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS)),true)
Shiv Maliyappanahalli303f51d2013-10-25 16:24:27 -0700125 LOCAL_CFLAGS += -DMULTI_VOICE_SESSION_ENABLED
126 LOCAL_SRC_FILES += voice_extn/voice_extn.c
Vidyakumar Athota21b3bb92014-04-25 11:08:08 -0700127
Mingming Yina6dad602014-05-16 12:10:55 -0700128ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INCALL_MUSIC)),true)
Shiv Maliyappanahalli303f51d2013-10-25 16:24:27 -0700129 LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED
130endif
Mingming Yina6dad602014-05-16 12:10:55 -0700131ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_VOIP)),true)
Narsinga Rao Chella05573b72013-11-15 15:21:40 -0800132 LOCAL_CFLAGS += -DCOMPRESS_VOIP_ENABLED
133 LOCAL_SRC_FILES += voice_extn/compress_voip.c
134endif
Subhash Chandra Bose Naripeddy19dc03b2014-03-10 14:43:05 -0700135
136endif
137
Mingming Yina6dad602014-05-16 12:10:55 -0700138ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true)
Satya Krishna Pindiproli5d82d012015-08-12 18:21:25 +0530139LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED
Gopikrishnaiah Anandanf538cef2013-10-28 14:06:03 -0700140endif
Shiv Maliyappanahalli303f51d2013-10-25 16:24:27 -0700141
Anish Kumard80a1392014-07-16 16:18:51 -0700142ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPKR_PROTECTION)),true)
Gopikrishnaiah Anandanf538cef2013-10-28 14:06:03 -0700143 LOCAL_CFLAGS += -DSPKR_PROT_ENABLED
144 LOCAL_SRC_FILES += audio_extn/spkr_protection.c
Gopikrishnaiah Anandanf538cef2013-10-28 14:06:03 -0700145endif
Shiv Maliyappanahalli303f51d2013-10-25 16:24:27 -0700146
Ravi Kumar Alamanda48c921d2013-10-29 06:07:44 -0700147ifdef MULTIPLE_HW_VARIANTS_ENABLED
148 LOCAL_CFLAGS += -DHW_VARIANTS_ENABLED
149 LOCAL_SRC_FILES += $(AUDIO_PLATFORM)/hw_info.c
150endif
151
Mingming Yina6dad602014-05-16 12:10:55 -0700152ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE)),true)
Mingming Yine62d7842013-10-25 16:26:03 -0700153 LOCAL_CFLAGS += -DCOMPRESS_CAPTURE_ENABLED
154 LOCAL_SRC_FILES += audio_extn/compress_capture.c
155endif
156
Jitendra Naruka1b6513f2014-11-22 19:34:13 -0800157ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)),true)
158 LOCAL_CFLAGS += -DDTS_EAGLE
159 LOCAL_SRC_FILES += audio_extn/dts_eagle.c
160endif
161
Mingming Yina6dad602014-05-16 12:10:55 -0700162ifeq ($(strip $(DOLBY_DDP)),true)
Mingming Yin90310102013-11-13 16:57:00 -0800163 LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED
Subhash Chandra Bose Naripeddy7690c562013-12-14 00:34:53 -0800164 LOCAL_SRC_FILES += audio_extn/dolby.c
Mingming Yin90310102013-11-13 16:57:00 -0800165endif
166
Pradnya Chaphekar73e2e8b2015-05-01 02:18:17 -0700167ifeq ($(strip $(DS1_DOLBY_DAP)),true)
Subhash Chandra Bose Naripeddy7690c562013-12-14 00:34:53 -0800168 LOCAL_CFLAGS += -DDS1_DOLBY_DAP_ENABLED
Mingming Yina6dad602014-05-16 12:10:55 -0700169ifneq ($(strip $(DOLBY_DDP)),true)
Subhash Chandra Bose Naripeddy7690c562013-12-14 00:34:53 -0800170 LOCAL_SRC_FILES += audio_extn/dolby.c
171endif
172endif
173
Mingming Yin3ee55c62014-08-04 14:23:35 -0700174ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER)),true)
Satya Krishna Pindiproli70471602015-04-24 19:12:43 +0530175 LOCAL_CFLAGS += -DFLAC_OFFLOAD_ENABLED
176 LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED
177endif
178
179ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD)),true)
180 LOCAL_CFLAGS += -DVORBIS_OFFLOAD_ENABLED
181 LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED
182
183endif
184
185ifeq ($(strip $(AUDIO_FEATURE_ENABLED_WMA_OFFLOAD)),true)
186 LOCAL_CFLAGS += -DWMA_OFFLOAD_ENABLED
187 LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED
188endif
189
190ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD)),true)
191 LOCAL_CFLAGS += -DALAC_OFFLOAD_ENABLED
192 LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED
193endif
194
195ifeq ($(strip $(AUDIO_FEATURE_ENABLED_APE_OFFLOAD)),true)
196 LOCAL_CFLAGS += -DAPE_OFFLOAD_ENABLED
197 LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED
Mingming Yin3ee55c62014-08-04 14:23:35 -0700198endif
199
Vidyakumar Athotac1d39c92015-02-25 15:14:26 -0800200ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true)
201 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24
202endif
203
Manish Dewangana6fc5442015-08-24 20:30:31 +0530204ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true)
205 LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED
206endif
207
Lior Barenboim0b61bc72014-05-13 13:01:37 +0300208ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true)
209 LOCAL_CFLAGS += -DDEV_ARBI_ENABLED
210 LOCAL_SRC_FILES += audio_extn/dev_arbi.c
211endif
212
Naresh Tanniruc0517bc2014-10-26 15:30:55 +0530213ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true)
214 LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY
215endif
216
Ashish Jain8ec50472014-10-16 13:56:28 +0530217ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ACDB_LICENSE)), true)
218 LOCAL_CFLAGS += -DDOLBY_ACDB_LICENSE
219endif
220
Pradnya Chaphekar8a9dcd82014-09-09 09:49:10 -0700221ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP)),true)
222 LOCAL_CFLAGS += -DDS2_DOLBY_DAP_ENABLED
Pradnya Chaphekar73e2e8b2015-05-01 02:18:17 -0700223 LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED
Pradnya Chaphekar8a9dcd82014-09-09 09:49:10 -0700224ifneq ($(strip $(DOLBY_DDP)),true)
Pradnya Chaphekar73e2e8b2015-05-01 02:18:17 -0700225 ifneq ($(strip $(DS1_DOLBY_DAP)),true)
Pradnya Chaphekar8a9dcd82014-09-09 09:49:10 -0700226 LOCAL_SRC_FILES += audio_extn/dolby.c
227 endif
228endif
229endif
230
Pradnya Chaphekar80a8cfb2014-10-20 16:17:01 -0700231ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH)),true)
232 LOCAL_CFLAGS += -DHDMI_PASSTHROUGH_ENABLED
Mingming Yin21854652016-04-13 11:54:02 -0700233 LOCAL_SRC_FILES += audio_extn/passthru.c
234endif
235
236ifeq ($(strip $(AUDIO_FEATURE_ENABLED_KEEP_ALIVE)),true)
237 LOCAL_CFLAGS += -DKEEP_ALIVE_ENABLED
238 LOCAL_SRC_FILES += audio_extn/keep_alive.c
Pradnya Chaphekar80a8cfb2014-10-20 16:17:01 -0700239endif
240
Narsinga Rao Chellaf928a982015-03-06 14:57:35 -0800241ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SOURCE_TRACKING)),true)
242 LOCAL_CFLAGS += -DSOURCE_TRACKING_ENABLED
243 LOCAL_SRC_FILES += audio_extn/source_track.c
244endif
245
Naresh Tanniru9d027a62015-03-13 01:32:10 +0530246ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPLIT_A2DP)),true)
247 LOCAL_CFLAGS += -DSPLIT_A2DP_ENABLED
248 LOCAL_SRC_FILES += audio_extn/a2dp.c
249endif
250
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -0800251LOCAL_SHARED_LIBRARIES := \
252 liblog \
253 libcutils \
254 libtinyalsa \
Ravi Kumar Alamanda4e02e552013-07-17 15:22:04 -0700255 libtinycompress \
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -0800256 libaudioroute \
Ben Romberger61764e32014-01-10 13:49:02 -0800257 libdl \
Ashish Jainf1eaa582016-05-23 20:54:24 +0530258 libaudioutils \
Naresh Tanniru9d027a62015-03-13 01:32:10 +0530259 libhardware \
Vidyakumar Athota77327dd2014-08-07 16:44:25 -0700260 libexpat
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -0800261
262LOCAL_C_INCLUDES += \
263 external/tinyalsa/include \
Ravi Kumar Alamanda4e02e552013-07-17 15:22:04 -0700264 external/tinycompress/include \
Ashish Jainf1eaa582016-05-23 20:54:24 +0530265 system/media/audio_utils/include \
Ben Romberger61764e32014-01-10 13:49:02 -0800266 external/expat/lib \
Ravi Kumar Alamandaf70ffb42013-04-16 15:55:53 -0700267 $(call include-path-for, audio-route) \
Eric Laurentb23d5282013-05-14 15:27:20 -0700268 $(call include-path-for, audio-effects) \
Apoorv Raghuvanshi9eaf94e2013-10-04 16:13:44 -0700269 $(LOCAL_PATH)/$(AUDIO_PLATFORM) \
Narsinga Rao Chella05573b72013-11-15 15:21:40 -0800270 $(LOCAL_PATH)/audio_extn \
Vidyakumar Athota77327dd2014-08-07 16:44:25 -0700271 $(LOCAL_PATH)/voice_extn
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -0800272
Kiran Kandi910e1862013-10-29 13:29:42 -0700273ifeq ($(strip $(AUDIO_FEATURE_ENABLED_LISTEN)),true)
274 LOCAL_CFLAGS += -DAUDIO_LISTEN_ENABLED
275 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-listen
276 LOCAL_SRC_FILES += audio_extn/listen.c
277endif
278
Ashish Jain81eb2a82015-05-13 10:52:34 +0530279ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXT_HDMI)),true)
280 LOCAL_CFLAGS += -DAUDIO_EXTERNAL_HDMI_ENABLED
281ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH)),true)
282 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-parsers
283 LOCAL_SHARED_LIBRARIES += libaudioparsers
284endif
285endif
286
Ravi Kumar Alamanda8fa6b192014-09-09 16:06:42 -0700287ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true)
288 LOCAL_CFLAGS += -DSOUND_TRIGGER_ENABLED
289 LOCAL_CFLAGS += -DSOUND_TRIGGER_PLATFORM_NAME=$(TARGET_BOARD_PLATFORM)
290 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/sound_trigger
291 LOCAL_SRC_FILES += audio_extn/soundtrigger.c
292endif
293
Damir Didjustof1d46c72013-11-06 17:59:04 -0800294ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUXPCM_BT)),true)
295 LOCAL_CFLAGS += -DAUXPCM_BT_ENABLED
296endif
297
Preetam Singh Ranawat2d0e4632015-02-02 12:40:59 +0530298ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PM_SUPPORT)),true)
299 LOCAL_CFLAGS += -DPM_SUPPORT_ENABLED
300 LOCAL_SRC_FILES += audio_extn/pm.c
301 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/libperipheralclient/inc
302 LOCAL_SHARED_LIBRARIES += libperipheral_client
303endif
304
Satya Krishna Pindiprolif1cd92b2016-04-14 19:05:23 +0530305LOCAL_CFLAGS += -Wall -Werror
Alexy Josephb1379942016-01-29 15:49:38 -0800306
Mingming Yin5b7c0b32014-08-04 15:49:24 -0700307LOCAL_COPY_HEADERS_TO := mm-audio
308LOCAL_COPY_HEADERS := audio_extn/audio_defs.h
309
Mingming Yin8e5a4f62013-10-07 15:23:41 -0700310LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM)
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -0800311
Apoorv Raghuvanshi1b555f72014-05-29 12:48:15 -0700312LOCAL_MODULE_RELATIVE_PATH := hw
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -0800313
314LOCAL_MODULE_TAGS := optional
315
316include $(BUILD_SHARED_LIBRARY)
317
318endif