Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 1 | ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true) |
| 2 | |
| 3 | LOCAL_PATH := $(call my-dir) |
| 4 | |
| 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | LOCAL_ARM_MODE := arm |
| 8 | |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 9 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
Ravi Kumar Alamanda | 48c921d | 2013-10-29 06:07:44 -0700 | [diff] [blame] | 10 | |
David Ng | a5ad5ea | 2013-10-10 20:36:49 -0700 | [diff] [blame] | 11 | ifneq ($(filter msm8974 msm8226 msm8610 apq8084,$(TARGET_BOARD_PLATFORM)),) |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 12 | # B-family platform uses msm8974 code base |
| 13 | AUDIO_PLATFORM = msm8974 |
Ravi Kumar Alamanda | 48c921d | 2013-10-29 06:07:44 -0700 | [diff] [blame] | 14 | MULTIPLE_HW_VARIANTS_ENABLED := true |
Mingming Yin | 8e5a4f6 | 2013-10-07 15:23:41 -0700 | [diff] [blame] | 15 | ifneq ($(filter msm8610,$(TARGET_BOARD_PLATFORM)),) |
| 16 | LOCAL_CFLAGS := -DPLATFORM_MSM8610 |
| 17 | endif |
Shiv Maliyappanahalli | 34b585f | 2013-10-01 15:49:05 -0700 | [diff] [blame] | 18 | ifneq ($(filter msm8226,$(TARGET_BOARD_PLATFORM)),) |
| 19 | LOCAL_CFLAGS := -DPLATFORM_MSM8x26 |
| 20 | endif |
Vidyakumar Athota | d9d9ff3 | 2013-11-13 11:46:52 -0800 | [diff] [blame] | 21 | ifneq ($(filter apq8084,$(TARGET_BOARD_PLATFORM)),) |
| 22 | LOCAL_CFLAGS := -DPLATFORM_APQ8084 |
| 23 | endif |
Steve Kondik | ac72feb | 2014-07-20 23:15:34 -0700 | [diff] [blame] | 24 | ifneq ($(filter msm8974,$(TARGET_BOARD_PLATFORM)),) |
| 25 | LOCAL_CFLAGS := -DPLATFORM_MSM8974 |
| 26 | endif |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 27 | endif |
| 28 | |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 29 | LOCAL_SRC_FILES := \ |
| 30 | audio_hw.c \ |
Shiv Maliyappanahalli | 34b585f | 2013-10-01 15:49:05 -0700 | [diff] [blame] | 31 | voice.c \ |
Ben Romberger | 5c5af69 | 2014-01-10 13:49:02 -0800 | [diff] [blame] | 32 | platform_info.c \ |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 33 | $(AUDIO_PLATFORM)/platform.c |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 34 | |
Apoorv Raghuvanshi | 9eaf94e | 2013-10-04 16:13:44 -0700 | [diff] [blame] | 35 | LOCAL_SRC_FILES += audio_extn/audio_extn.c |
| 36 | |
Tony Layher | 692f19a | 2015-01-03 13:16:45 -0500 | [diff] [blame] | 37 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 38 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 39 | |
Mingming Yin | 7854128 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 40 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ANC_HEADSET)),true) |
Apoorv Raghuvanshi | 9eaf94e | 2013-10-04 16:13:44 -0700 | [diff] [blame] | 41 | LOCAL_CFLAGS += -DANC_HEADSET_ENABLED |
| 42 | endif |
| 43 | |
Steve Kondik | 7973303 | 2014-12-08 04:02:28 -0800 | [diff] [blame] | 44 | ifneq ($(strip $(AUDIO_FEATURE_ENABLED_FLUENCE)),false) |
Venkata Narendra Kumar Gutta | 9c38b18 | 2014-03-27 17:39:57 +0530 | [diff] [blame] | 45 | LOCAL_CFLAGS += -DFLUENCE_ENABLED |
| 46 | endif |
| 47 | |
Steve Kondik | 7973303 | 2014-12-08 04:02:28 -0800 | [diff] [blame] | 48 | ifneq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),false) |
Apoorv Raghuvanshi | 9eaf94e | 2013-10-04 16:13:44 -0700 | [diff] [blame] | 49 | LOCAL_CFLAGS += -DAFE_PROXY_ENABLED |
| 50 | endif |
| 51 | |
Ramjee Singh | fd4323f | 2015-11-18 13:26:59 +0530 | [diff] [blame] | 52 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true) |
| 53 | LOCAL_CFLAGS += -DFM_POWER_OPT |
Apoorv Raghuvanshi | 6e26284 | 2013-10-06 14:39:35 -0700 | [diff] [blame] | 54 | LOCAL_SRC_FILES += audio_extn/fm.c |
| 55 | endif |
| 56 | |
Mingming Yin | 7854128 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 57 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_USBAUDIO)),true) |
Apoorv Raghuvanshi | 5792d4b | 2013-10-07 18:40:05 -0700 | [diff] [blame] | 58 | LOCAL_CFLAGS += -DUSB_HEADSET_ENABLED |
| 59 | LOCAL_SRC_FILES += audio_extn/usb.c |
| 60 | endif |
Mingming Yin | 7854128 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 61 | |
Steve Kondik | 7973303 | 2014-12-08 04:02:28 -0800 | [diff] [blame] | 62 | ifneq ($(strip $(AUDIO_FEATURE_ENABLED_HFP)),false) |
Vimal Puthanveed | 5b4d3f1 | 2013-11-05 15:57:39 -0800 | [diff] [blame] | 63 | LOCAL_CFLAGS += -DHFP_ENABLED |
| 64 | LOCAL_SRC_FILES += audio_extn/hfp.c |
| 65 | endif |
Apoorv Raghuvanshi | 5792d4b | 2013-10-07 18:40:05 -0700 | [diff] [blame] | 66 | |
Mingming Yin | 7854128 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 67 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_CUSTOMSTEREO)),true) |
| 68 | LOCAL_CFLAGS += -DCUSTOM_STEREO_ENABLED |
| 69 | endif |
| 70 | |
| 71 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SSR)),true) |
Apoorv Raghuvanshi | 6178a3f | 2013-10-19 12:38:54 -0700 | [diff] [blame] | 72 | LOCAL_CFLAGS += -DSSR_ENABLED |
| 73 | LOCAL_SRC_FILES += audio_extn/ssr.c |
| 74 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/surround_sound/ |
| 75 | endif |
| 76 | |
Christopher R. Palmer | becbb2f | 2017-01-06 14:50:48 -0500 | [diff] [blame] | 77 | ifeq ($(strip $(AUDIO_FEATURE_HUAWEI_SOUND_PARAM_PATH)),true) |
| 78 | LOCAL_CFLAGS += -DHUAWEI_SOUND_PARAM_PATH |
| 79 | endif |
| 80 | |
Mingming Yin | 7854128 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 81 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS)),true) |
Shiv Maliyappanahalli | 303f51d | 2013-10-25 16:24:27 -0700 | [diff] [blame] | 82 | LOCAL_CFLAGS += -DMULTI_VOICE_SESSION_ENABLED |
| 83 | LOCAL_SRC_FILES += voice_extn/voice_extn.c |
Steve Kondik | 504b9db | 2015-10-16 02:04:59 -0700 | [diff] [blame] | 84 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INCALL_MUSIC)),true) |
Shiv Maliyappanahalli | 303f51d | 2013-10-25 16:24:27 -0700 | [diff] [blame] | 85 | LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED |
| 86 | endif |
Bruno Martins | e207881 | 2015-08-03 22:52:51 +0100 | [diff] [blame] | 87 | ifeq ($(strip $(AUDIO_FEATURE_HTC_DUAL_SIM)),true) |
| 88 | LOCAL_CFLAGS += -DHTC_DUAL_SIM |
| 89 | LOCAL_SRC_FILES += voice_extn/msim_voice_extn.c |
| 90 | endif |
ljzyal | a53260b | 2015-07-25 00:41:56 -0700 | [diff] [blame] | 91 | ifeq ($(strip $(AUDIO_FEATURE_SAMSUNG_DUAL_SIM)),true) |
| 92 | LOCAL_CFLAGS += -DSAMSUNG_DUAL_SIM |
Bruno Martins | e207881 | 2015-08-03 22:52:51 +0100 | [diff] [blame] | 93 | LOCAL_SRC_FILES += voice_extn/msim_voice_extn.c |
ljzyal | a53260b | 2015-07-25 00:41:56 -0700 | [diff] [blame] | 94 | endif |
Steve Kondik | 72f069b | 2014-01-05 16:00:57 -0800 | [diff] [blame] | 95 | endif |
dhacker29 | 66184b0 | 2014-03-29 03:02:50 -0400 | [diff] [blame] | 96 | |
Tony Layher | 29451af | 2015-01-03 13:10:54 -0500 | [diff] [blame] | 97 | ifneq ($(filter apq8084 msm8974 msm8226 msm8610,$(TARGET_BOARD_PLATFORM)),) |
Steve Kondik | 7973303 | 2014-12-08 04:02:28 -0800 | [diff] [blame] | 98 | ifneq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_VOIP)),false) |
Narsinga Rao Chella | 05573b7 | 2013-11-15 15:21:40 -0800 | [diff] [blame] | 99 | LOCAL_CFLAGS += -DCOMPRESS_VOIP_ENABLED |
| 100 | LOCAL_SRC_FILES += voice_extn/compress_voip.c |
| 101 | endif |
dhacker29 | 66184b0 | 2014-03-29 03:02:50 -0400 | [diff] [blame] | 102 | endif |
Mingming Yin | 7854128 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 103 | |
Steve Kondik | 7973303 | 2014-12-08 04:02:28 -0800 | [diff] [blame] | 104 | ifneq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),false) |
Amit Shekhar | faefb32 | 2014-09-08 14:08:19 -0700 | [diff] [blame] | 105 | LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED |
Mingming Yin | 7854128 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 106 | endif |
| 107 | |
Tony Layher | 29451af | 2015-01-03 13:10:54 -0500 | [diff] [blame] | 108 | ifneq ($(filter apq8084 msm8974,$(TARGET_BOARD_PLATFORM)),) |
Ramjee Singh | 3e68db3 | 2014-08-07 17:21:00 +0530 | [diff] [blame] | 109 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPKR_PROTECTION)),true) |
Gopikrishnaiah Anandan | f538cef | 2013-10-28 14:06:03 -0700 | [diff] [blame] | 110 | LOCAL_CFLAGS += -DSPKR_PROT_ENABLED |
| 111 | LOCAL_SRC_FILES += audio_extn/spkr_protection.c |
Gopikrishnaiah Anandan | f538cef | 2013-10-28 14:06:03 -0700 | [diff] [blame] | 112 | endif |
dhacker29 | 66184b0 | 2014-03-29 03:02:50 -0400 | [diff] [blame] | 113 | endif |
Shiv Maliyappanahalli | 303f51d | 2013-10-25 16:24:27 -0700 | [diff] [blame] | 114 | |
Eric Laurent | da46bfb | 2014-08-25 22:39:29 -0500 | [diff] [blame] | 115 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTERNAL_SPEAKER)),true) |
| 116 | LOCAL_CFLAGS += -DEXTERNAL_SPEAKER_ENABLED |
| 117 | LOCAL_SRC_FILES += audio_extn/ext_speaker.c |
| 118 | endif |
| 119 | |
Ravi Kumar Alamanda | 48c921d | 2013-10-29 06:07:44 -0700 | [diff] [blame] | 120 | ifdef MULTIPLE_HW_VARIANTS_ENABLED |
| 121 | LOCAL_CFLAGS += -DHW_VARIANTS_ENABLED |
| 122 | LOCAL_SRC_FILES += $(AUDIO_PLATFORM)/hw_info.c |
| 123 | endif |
| 124 | |
Steve Kondik | 504b9db | 2015-10-16 02:04:59 -0700 | [diff] [blame] | 125 | #ifneq ($(filter apq8084 msm8974 msm8226 msm8610,$(TARGET_BOARD_PLATFORM)),) |
| 126 | #ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE)),true) |
| 127 | # LOCAL_CFLAGS += -DCOMPRESS_CAPTURE_ENABLED |
| 128 | # LOCAL_SRC_FILES += audio_extn/compress_capture.c |
| 129 | #endif |
| 130 | #endif |
Mingming Yin | e62d784 | 2013-10-25 16:26:03 -0700 | [diff] [blame] | 131 | |
Eric Laurent | 0043e15 | 2014-10-23 14:42:59 -0700 | [diff] [blame] | 132 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_NEW_SAMPLE_RATE)),true) |
| 133 | LOCAL_CFLAGS += -DNEW_SAMPLE_RATE_ENABLED |
| 134 | endif |
| 135 | |
Tony Layher | 29451af | 2015-01-03 13:10:54 -0500 | [diff] [blame] | 136 | ifneq ($(filter apq8084 msm8974 msm8226 msm8610,$(TARGET_BOARD_PLATFORM)),) |
Mingming Yin | 7854128 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 137 | ifeq ($(strip $(DOLBY_DDP)),true) |
Mingming Yin | 9031010 | 2013-11-13 16:57:00 -0800 | [diff] [blame] | 138 | LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED |
Subhash Chandra Bose Naripeddy | e0a0712 | 2013-12-14 00:34:53 -0800 | [diff] [blame] | 139 | LOCAL_SRC_FILES += audio_extn/dolby.c |
Mingming Yin | 9031010 | 2013-11-13 16:57:00 -0800 | [diff] [blame] | 140 | endif |
dhacker29 | 66184b0 | 2014-03-29 03:02:50 -0400 | [diff] [blame] | 141 | endif |
Mingming Yin | 9031010 | 2013-11-13 16:57:00 -0800 | [diff] [blame] | 142 | |
Mingming Yin | 7854128 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 143 | ifeq ($(strip $(DOLBY_DAP)),true) |
Subhash Chandra Bose Naripeddy | e0a0712 | 2013-12-14 00:34:53 -0800 | [diff] [blame] | 144 | LOCAL_CFLAGS += -DDS1_DOLBY_DAP_ENABLED |
Mingming Yin | 7854128 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 145 | ifneq ($(strip $(DOLBY_DDP)),true) |
Subhash Chandra Bose Naripeddy | e0a0712 | 2013-12-14 00:34:53 -0800 | [diff] [blame] | 146 | LOCAL_SRC_FILES += audio_extn/dolby.c |
| 147 | endif |
| 148 | endif |
| 149 | |
Steve Kondik | b045f47 | 2014-11-12 23:24:07 -0800 | [diff] [blame] | 150 | ifeq ($(AUDIO_FEATURE_LOW_LATENCY_PRIMARY),true) |
| 151 | LOCAL_CFLAGS += -DLOW_LATENCY_PRIMARY |
| 152 | endif |
| 153 | |
Alexy Joseph | 505da3f | 2015-09-10 01:31:51 -0700 | [diff] [blame] | 154 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_WMA_OFFLOAD)),true) |
Ethan Chen | c856d97 | 2014-07-25 14:57:15 -0700 | [diff] [blame] | 155 | LOCAL_CFLAGS += -DWMA_OFFLOAD_ENABLED |
Alexy Joseph | 505da3f | 2015-09-10 01:31:51 -0700 | [diff] [blame] | 156 | LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED |
Ethan Chen | c856d97 | 2014-07-25 14:57:15 -0700 | [diff] [blame] | 157 | endif |
| 158 | |
Tony Layher | 29451af | 2015-01-03 13:10:54 -0500 | [diff] [blame] | 159 | ifneq ($(filter apq8084 msm8974 msm8226,$(TARGET_BOARD_PLATFORM)),) |
Ethan Chen | c856d97 | 2014-07-25 14:57:15 -0700 | [diff] [blame] | 160 | ifneq ($(strip $(AUDIO_FEATURE_DISABLED_MP2_OFFLOAD)),true) |
| 161 | LOCAL_CFLAGS += -DMP2_OFFLOAD_ENABLED |
Ethan Chen | c856d97 | 2014-07-25 14:57:15 -0700 | [diff] [blame] | 162 | endif |
| 163 | endif |
| 164 | |
Subhash Chandra Bose Naripeddy | 148144e | 2014-04-01 21:03:10 -0700 | [diff] [blame] | 165 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MULTIPLE_TUNNEL)), true) |
| 166 | LOCAL_CFLAGS += -DMULTIPLE_OFFLOAD_ENABLED |
| 167 | endif |
| 168 | |
Steve Kondik | 6bedcdf | 2014-07-21 11:48:30 -0700 | [diff] [blame] | 169 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD)),true) |
| 170 | LOCAL_CFLAGS += -DFLAC_OFFLOAD_ENABLED |
Alexy Joseph | 505da3f | 2015-09-10 01:31:51 -0700 | [diff] [blame] | 171 | LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED |
Steve Kondik | 6bedcdf | 2014-07-21 11:48:30 -0700 | [diff] [blame] | 172 | endif |
| 173 | |
Gabriele M | d9ff371 | 2015-12-17 22:00:12 +0100 | [diff] [blame] | 174 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE)),true) |
Ravi Kumar Alamanda | 1c3de5e | 2014-09-08 15:59:58 -0700 | [diff] [blame] | 175 | LOCAL_CFLAGS += -DLOW_LATENCY_CAPTURE_USE_CASE=1 |
| 176 | endif |
| 177 | |
Steve Kondik | a7e38b7 | 2016-03-08 23:40:11 -0800 | [diff] [blame] | 178 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE)),true) |
| 179 | LOCAL_CFLAGS += -DKPI_OPTIMIZE_ENABLED |
| 180 | endif |
| 181 | |
Sultan Qasim Khan | 3125b2c | 2017-02-26 22:58:35 -0500 | [diff] [blame] | 182 | ifeq ($(strip $(AUDIO_FEATURE_DISABLED_FM_VIRTUAL_RECORD)),true) |
| 183 | LOCAL_CFLAGS += -DNO_FM_VIRTUAL_RECORD |
| 184 | endif |
| 185 | |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 186 | LOCAL_SHARED_LIBRARIES := \ |
| 187 | liblog \ |
| 188 | libcutils \ |
Ethan Chen | 79c356c | 2015-06-07 12:26:14 -0700 | [diff] [blame] | 189 | libhardware \ |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 190 | libtinyalsa \ |
Ravi Kumar Alamanda | 4e02e55 | 2013-07-17 15:22:04 -0700 | [diff] [blame] | 191 | libtinycompress \ |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 192 | libaudioroute \ |
Ben Romberger | 5c5af69 | 2014-01-10 13:49:02 -0800 | [diff] [blame] | 193 | libdl \ |
| 194 | libexpat |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 195 | |
| 196 | LOCAL_C_INCLUDES += \ |
| 197 | external/tinyalsa/include \ |
Ravi Kumar Alamanda | 4e02e55 | 2013-07-17 15:22:04 -0700 | [diff] [blame] | 198 | external/tinycompress/include \ |
Ben Romberger | 5c5af69 | 2014-01-10 13:49:02 -0800 | [diff] [blame] | 199 | external/expat/lib \ |
Ethan Chen | 79c356c | 2015-06-07 12:26:14 -0700 | [diff] [blame] | 200 | hardware/libhardware/include \ |
Ravi Kumar Alamanda | f70ffb4 | 2013-04-16 15:55:53 -0700 | [diff] [blame] | 201 | $(call include-path-for, audio-route) \ |
Eric Laurent | b23d528 | 2013-05-14 15:27:20 -0700 | [diff] [blame] | 202 | $(call include-path-for, audio-effects) \ |
Apoorv Raghuvanshi | 9eaf94e | 2013-10-04 16:13:44 -0700 | [diff] [blame] | 203 | $(LOCAL_PATH)/$(AUDIO_PLATFORM) \ |
Narsinga Rao Chella | 05573b7 | 2013-11-15 15:21:40 -0800 | [diff] [blame] | 204 | $(LOCAL_PATH)/audio_extn \ |
Ramjee Singh | 716bd19 | 2015-07-10 16:34:41 +0530 | [diff] [blame] | 205 | $(LOCAL_PATH)/voice_extn \ |
Steve Kondik | a7e38b7 | 2016-03-08 23:40:11 -0800 | [diff] [blame] | 206 | $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 207 | |
Kiran Kandi | 910e186 | 2013-10-29 13:29:42 -0700 | [diff] [blame] | 208 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_LISTEN)),true) |
| 209 | LOCAL_CFLAGS += -DAUDIO_LISTEN_ENABLED |
| 210 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-listen |
| 211 | LOCAL_SRC_FILES += audio_extn/listen.c |
| 212 | endif |
| 213 | |
Damir Didjusto | f1d46c7 | 2013-11-06 17:59:04 -0800 | [diff] [blame] | 214 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUXPCM_BT)),true) |
| 215 | LOCAL_CFLAGS += -DAUXPCM_BT_ENABLED |
| 216 | endif |
| 217 | |
Tony Layher | be228ca | 2014-12-23 10:58:58 -0500 | [diff] [blame] | 218 | ifeq ($(BOARD_USES_ES705),true) |
| 219 | LOCAL_CFLAGS += -DUSE_ES705 |
| 220 | endif |
| 221 | |
Steve Kondik | 50ee810 | 2015-01-02 14:47:25 -0800 | [diff] [blame] | 222 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HWDEP_CAL)),true) |
| 223 | LOCAL_CFLAGS += -DHWDEP_CAL_ENABLED |
| 224 | endif |
| 225 | |
Mingming Yin | d1179ad | 2014-08-04 15:49:24 -0700 | [diff] [blame] | 226 | LOCAL_COPY_HEADERS_TO := mm-audio |
| 227 | LOCAL_COPY_HEADERS := audio_extn/audio_defs.h |
| 228 | |
Mingming Yin | 8e5a4f6 | 2013-10-07 15:23:41 -0700 | [diff] [blame] | 229 | LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM) |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 230 | |
| 231 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 232 | |
| 233 | LOCAL_MODULE_TAGS := optional |
| 234 | |
| 235 | include $(BUILD_SHARED_LIBRARY) |
| 236 | |
| 237 | endif |