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) |
Jean-Michel Trivi | c075069 | 2015-10-12 12:12:32 -0700 | [diff] [blame] | 10 | ifneq ($(filter msm8960,$(TARGET_BOARD_PLATFORM)),) |
| 11 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="2" |
| 12 | endif |
Cyan_Hsieh | 8e9b92d | 2019-01-22 18:22:57 +0800 | [diff] [blame] | 13 | ifneq ($(filter msm8974 msm8226 msm8084 msm8992 msm8994 msm8996 msm8998 sdm845 sdm710 msmnile,$(TARGET_BOARD_PLATFORM)),) |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 14 | # B-family platform uses msm8974 code base |
| 15 | AUDIO_PLATFORM = msm8974 |
Jean-Michel Trivi | 7246fb6 | 2015-10-08 20:20:48 -0700 | [diff] [blame] | 16 | ifneq ($(filter msm8974,$(TARGET_BOARD_PLATFORM)),) |
Ed Tam | 70b5c14 | 2016-03-21 19:14:29 -0700 | [diff] [blame] | 17 | LOCAL_CFLAGS := -DPLATFORM_MSM8974 |
Jean-Michel Trivi | 7246fb6 | 2015-10-08 20:20:48 -0700 | [diff] [blame] | 18 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="2" |
| 19 | endif |
Ravi Kumar Alamanda | 8e6e98f | 2013-11-05 15:57:39 -0800 | [diff] [blame] | 20 | ifneq ($(filter msm8226,$(TARGET_BOARD_PLATFORM)),) |
Ed Tam | 70b5c14 | 2016-03-21 19:14:29 -0700 | [diff] [blame] | 21 | LOCAL_CFLAGS := -DPLATFORM_MSM8x26 |
Prashant Malani | c92c596 | 2015-08-11 15:10:18 -0700 | [diff] [blame] | 22 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="2" |
Ravi Kumar Alamanda | 8e6e98f | 2013-11-05 15:57:39 -0800 | [diff] [blame] | 23 | endif |
Ravi Kumar Alamanda | 83281a9 | 2014-05-19 18:14:57 -0700 | [diff] [blame] | 24 | ifneq ($(filter msm8084,$(TARGET_BOARD_PLATFORM)),) |
Ed Tam | 70b5c14 | 2016-03-21 19:14:29 -0700 | [diff] [blame] | 25 | LOCAL_CFLAGS := -DPLATFORM_MSM8084 |
Prashant Malani | c92c596 | 2015-08-11 15:10:18 -0700 | [diff] [blame] | 26 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="2" |
Ravi Kumar Alamanda | 83281a9 | 2014-05-19 18:14:57 -0700 | [diff] [blame] | 27 | endif |
Patrick Tjin | 11c2e2d | 2015-03-12 11:44:18 -0700 | [diff] [blame] | 28 | ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),) |
Ed Tam | 70b5c14 | 2016-03-21 19:14:29 -0700 | [diff] [blame] | 29 | LOCAL_CFLAGS := -DPLATFORM_MSM8994 |
Prashant Malani | c92c596 | 2015-08-11 15:10:18 -0700 | [diff] [blame] | 30 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="4" |
Ravi Kumar Alamanda | 533bb72 | 2015-09-23 13:47:03 -0700 | [diff] [blame] | 31 | LOCAL_CFLAGS += -DKPI_OPTIMIZE_ENABLED |
Patrick Tjin | 11c2e2d | 2015-03-12 11:44:18 -0700 | [diff] [blame] | 32 | endif |
| 33 | ifneq ($(filter msm8994,$(TARGET_BOARD_PLATFORM)),) |
Ed Tam | 70b5c14 | 2016-03-21 19:14:29 -0700 | [diff] [blame] | 34 | LOCAL_CFLAGS := -DPLATFORM_MSM8994 |
Prashant Malani | c92c596 | 2015-08-11 15:10:18 -0700 | [diff] [blame] | 35 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="4" |
Ravi Kumar Alamanda | 533bb72 | 2015-09-23 13:47:03 -0700 | [diff] [blame] | 36 | LOCAL_CFLAGS += -DKPI_OPTIMIZE_ENABLED |
Patrick Tjin | 11c2e2d | 2015-03-12 11:44:18 -0700 | [diff] [blame] | 37 | endif |
vivek mehta | 295916b | 2016-02-04 14:47:22 -0800 | [diff] [blame] | 38 | ifneq ($(filter msm8996,$(TARGET_BOARD_PLATFORM)),) |
Ed Tam | 70b5c14 | 2016-03-21 19:14:29 -0700 | [diff] [blame] | 39 | LOCAL_CFLAGS := -DPLATFORM_MSM8996 |
vivek mehta | 295916b | 2016-02-04 14:47:22 -0800 | [diff] [blame] | 40 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="4" |
| 41 | LOCAL_CFLAGS += -DKPI_OPTIMIZE_ENABLED |
Nadav Bar | 3d72cfc | 2018-01-07 12:19:24 +0200 | [diff] [blame] | 42 | LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED |
vivek mehta | de4849c | 2016-03-03 17:23:38 -0800 | [diff] [blame] | 43 | MULTIPLE_HW_VARIANTS_ENABLED := true |
vivek mehta | 295916b | 2016-02-04 14:47:22 -0800 | [diff] [blame] | 44 | endif |
Thierry Strudel | 8a8deaa | 2016-12-15 13:34:42 -0800 | [diff] [blame] | 45 | ifneq ($(filter msm8998,$(TARGET_BOARD_PLATFORM)),) |
| 46 | LOCAL_CFLAGS := -DPLATFORM_MSM8998 |
Thierry Strudel | 0cfc50a | 2016-10-26 23:58:53 -0700 | [diff] [blame] | 47 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="4" |
Nadav Bar | 3d72cfc | 2018-01-07 12:19:24 +0200 | [diff] [blame] | 48 | LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED |
Thierry Strudel | 0cfc50a | 2016-10-26 23:58:53 -0700 | [diff] [blame] | 49 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 50 | endif |
Alexey Polyudov | e920d4b | 2017-09-15 17:09:07 -0700 | [diff] [blame] | 51 | ifneq ($(filter sdm845,$(TARGET_BOARD_PLATFORM)),) |
| 52 | LOCAL_CFLAGS := -DPLATFORM_SDM845 |
| 53 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="4" |
Nadav Bar | 3d72cfc | 2018-01-07 12:19:24 +0200 | [diff] [blame] | 54 | LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED |
Arun Mirpuri | ba2749a | 2018-04-17 14:32:24 -0700 | [diff] [blame] | 55 | LOCAL_CFLAGS += -DINCALL_STEREO_CAPTURE_ENABLED |
Alexey Polyudov | e920d4b | 2017-09-15 17:09:07 -0700 | [diff] [blame] | 56 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 57 | endif |
vincenttew | e56cd4b | 2018-08-02 15:39:33 +0800 | [diff] [blame] | 58 | ifneq ($(filter sdm710,$(TARGET_BOARD_PLATFORM)),) |
| 59 | LOCAL_CFLAGS := -DPLATFORM_SDM710 |
| 60 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="4" |
| 61 | LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED |
| 62 | LOCAL_CFLAGS += -DINCALL_STEREO_CAPTURE_ENABLED |
| 63 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 64 | endif |
Cyan_Hsieh | 8e9b92d | 2019-01-22 18:22:57 +0800 | [diff] [blame] | 65 | ifneq ($(filter msmnile,$(TARGET_BOARD_PLATFORM)),) |
Thierry Strudel | 07f96d1 | 2018-09-20 13:31:34 -0700 | [diff] [blame] | 66 | LOCAL_CFLAGS := -DPLATFORM_SM8150 |
| 67 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="4" |
| 68 | LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED |
| 69 | LOCAL_CFLAGS += -DINCALL_STEREO_CAPTURE_ENABLED |
| 70 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 71 | endif |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 72 | endif |
| 73 | |
Yamit Mehta | 6b4b127 | 2016-06-10 15:12:50 +0530 | [diff] [blame] | 74 | ifneq ($(filter msm8916 msm8909 msm8952,$(TARGET_BOARD_PLATFORM)),) |
| 75 | AUDIO_PLATFORM = msm8916 |
| 76 | LOCAL_CFLAGS := -DPLATFORM_MSM8916 |
| 77 | ifneq ($(filter msm8909,$(TARGET_BOARD_PLATFORM)),) |
| 78 | LOCAL_CFLAGS := -DPLATFORM_MSM8909 |
| 79 | endif |
| 80 | LOCAL_CFLAGS += -DMAX_TARGET_SPECIFIC_CHANNEL_CNT="2" |
| 81 | LOCAL_CFLAGS += -DKPI_OPTIMIZE_ENABLED |
| 82 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 83 | endif |
| 84 | |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 85 | LOCAL_SRC_FILES := \ |
| 86 | audio_hw.c \ |
Vineeta Srivastava | 4b89e37 | 2014-06-19 14:21:42 -0700 | [diff] [blame] | 87 | voice.c \ |
Haynes Mathew George | 5bc1884 | 2014-06-16 16:36:20 -0700 | [diff] [blame] | 88 | platform_info.c \ |
Eric Laurent | 0499d4f | 2014-08-25 22:39:29 -0500 | [diff] [blame] | 89 | audio_extn/ext_speaker.c \ |
Ravi Kumar Alamanda | 533bb72 | 2015-09-23 13:47:03 -0700 | [diff] [blame] | 90 | audio_extn/audio_extn.c \ |
Yamit Mehta | e3b9956 | 2016-09-16 22:44:00 +0530 | [diff] [blame] | 91 | audio_extn/utils.c \ |
vivek mehta | 0fb1131 | 2017-05-15 19:35:32 -0700 | [diff] [blame] | 92 | $(AUDIO_PLATFORM)/platform.c \ |
| 93 | acdb.c |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 94 | |
vivek mehta | de4849c | 2016-03-03 17:23:38 -0800 | [diff] [blame] | 95 | ifdef MULTIPLE_HW_VARIANTS_ENABLED |
| 96 | LOCAL_CFLAGS += -DHW_VARIANTS_ENABLED |
| 97 | LOCAL_SRC_FILES += $(AUDIO_PLATFORM)/hw_info.c |
| 98 | endif |
| 99 | |
David Lin | ee3fe40 | 2017-03-13 10:00:42 -0700 | [diff] [blame] | 100 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_USB_TUNNEL)),true) |
| 101 | LOCAL_CFLAGS += -DUSB_TUNNEL_ENABLED |
| 102 | LOCAL_SRC_FILES += audio_extn/usb.c |
| 103 | endif |
| 104 | |
vivek mehta | 9093387 | 2017-06-15 18:04:39 -0700 | [diff] [blame] | 105 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_USB_SIDETONE_VOLUME)),true) |
| 106 | LOCAL_CFLAGS += -DUSB_SIDETONE_VOLUME |
| 107 | endif |
| 108 | |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 109 | LOCAL_SHARED_LIBRARIES := \ |
Andy Hung | fc044e1 | 2017-03-20 09:24:22 -0700 | [diff] [blame] | 110 | libaudioutils \ |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 111 | liblog \ |
| 112 | libcutils \ |
Suren Baghdasaryan | 7f924c2 | 2018-12-21 15:07:18 -0800 | [diff] [blame] | 113 | libprocessgroup \ |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 114 | libtinyalsa \ |
Ravi Kumar Alamanda | 4e02e55 | 2013-07-17 15:22:04 -0700 | [diff] [blame] | 115 | libtinycompress \ |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 116 | libaudioroute \ |
Haynes Mathew George | 5bc1884 | 2014-06-16 16:36:20 -0700 | [diff] [blame] | 117 | libdl \ |
| 118 | libexpat |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 119 | |
| 120 | LOCAL_C_INCLUDES += \ |
| 121 | external/tinyalsa/include \ |
Ravi Kumar Alamanda | 4e02e55 | 2013-07-17 15:22:04 -0700 | [diff] [blame] | 122 | external/tinycompress/include \ |
Ravi Kumar Alamanda | f70ffb4 | 2013-04-16 15:55:53 -0700 | [diff] [blame] | 123 | $(call include-path-for, audio-route) \ |
Kevin Rocard | bae0dcb | 2018-01-24 06:13:37 +0000 | [diff] [blame] | 124 | $(call include-path-for, audio-effects) \ |
Ravi Kumar Alamanda | 8e6e98f | 2013-11-05 15:57:39 -0800 | [diff] [blame] | 125 | $(LOCAL_PATH)/$(AUDIO_PLATFORM) \ |
Vineeta Srivastava | 4b89e37 | 2014-06-19 14:21:42 -0700 | [diff] [blame] | 126 | $(LOCAL_PATH)/audio_extn \ |
Haynes Mathew George | 5bc1884 | 2014-06-16 16:36:20 -0700 | [diff] [blame] | 127 | $(LOCAL_PATH)/voice_extn \ |
| 128 | external/expat/lib |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 129 | |
Alain Vongsouvanh | 13f26e8 | 2016-11-18 14:39:11 -0800 | [diff] [blame] | 130 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SMART_PA_TFA_98XX)),true) |
| 131 | LOCAL_SHARED_LIBRARIES += libexTfa98xx |
| 132 | LOCAL_CFLAGS += -DSMART_PA_TFA_98XX_SUPPORTED |
| 133 | LOCAL_SRC_FILES += audio_extn/tfa_98xx.c |
| 134 | endif |
| 135 | |
Vineeta Srivastava | 4b89e37 | 2014-06-19 14:21:42 -0700 | [diff] [blame] | 136 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS)),true) |
| 137 | LOCAL_CFLAGS += -DMULTI_VOICE_SESSION_ENABLED |
| 138 | LOCAL_SRC_FILES += voice_extn/voice_extn.c |
| 139 | endif |
| 140 | |
Ravi Kumar Alamanda | 8e6e98f | 2013-11-05 15:57:39 -0800 | [diff] [blame] | 141 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HFP)),true) |
| 142 | LOCAL_CFLAGS += -DHFP_ENABLED |
| 143 | LOCAL_SRC_FILES += audio_extn/hfp.c |
| 144 | endif |
| 145 | |
Uday Kishore Pasupuleti | 075842f | 2015-07-28 15:18:31 -0700 | [diff] [blame] | 146 | ifeq ($(strip $(AUDIO_FEATURE_SUPPORTED_EXTERNAL_BT)),true) |
| 147 | LOCAL_CFLAGS += -DEXTERNAL_BT_SUPPORTED |
| 148 | endif |
| 149 | |
Xu Han | 1638fd1 | 2018-04-20 12:42:23 -0700 | [diff] [blame] | 150 | ifeq ($(strip $(AUDIO_FEATURE_FLICKER_SENSOR_INPUT)),true) |
| 151 | LOCAL_CFLAGS += -DFLICKER_SENSOR_INPUT |
| 152 | endif |
| 153 | |
Uday Kishore Pasupuleti | cec8ad8 | 2015-04-15 10:34:06 -0700 | [diff] [blame] | 154 | ifeq ($(strip $(AUDIO_FEATURE_NO_AUDIO_OUT)),true) |
| 155 | LOCAL_CFLAGS += -DNO_AUDIO_OUT |
| 156 | endif |
| 157 | |
Ravi Kumar Alamanda | a417cc5 | 2015-05-01 16:41:56 -0700 | [diff] [blame] | 158 | ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true) |
| 159 | LOCAL_CFLAGS += -DSOUND_TRIGGER_ENABLED |
| 160 | LOCAL_CFLAGS += -DSOUND_TRIGGER_PLATFORM_NAME=$(TARGET_BOARD_PLATFORM) |
| 161 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/sound_trigger |
| 162 | LOCAL_SRC_FILES += audio_extn/soundtrigger.c |
Vijay Venkatraman | 49543ea | 2017-02-28 17:29:29 -0800 | [diff] [blame] | 163 | ifneq ($(filter msm8996,$(TARGET_BOARD_PLATFORM)),) |
| 164 | LOCAL_HEADER_LIBRARIES := sound_trigger.primary_headers |
| 165 | endif |
| 166 | |
Ravi Kumar Alamanda | a417cc5 | 2015-05-01 16:41:56 -0700 | [diff] [blame] | 167 | endif |
| 168 | |
Ravi Kumar Alamanda | 6386300 | 2015-04-22 11:15:25 -0700 | [diff] [blame] | 169 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPKR_PROTECTION)),true) |
| 170 | LOCAL_CFLAGS += -DSPKR_PROT_ENABLED |
| 171 | LOCAL_SRC_FILES += audio_extn/spkr_protection.c |
| 172 | endif |
| 173 | |
David Lin | 84e262b | 2017-11-07 22:51:07 -0800 | [diff] [blame] | 174 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_CIRRUS_SPKR_PROTECTION)),true) |
| 175 | LOCAL_CFLAGS += -DSPKR_PROT_ENABLED |
| 176 | LOCAL_SRC_FILES += audio_extn/cirrus_playback.c |
| 177 | endif |
| 178 | |
zhaoyang yin | 4211fad | 2015-06-04 21:13:25 +0800 | [diff] [blame] | 179 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DSM_FEEDBACK)),true) |
| 180 | LOCAL_CFLAGS += -DDSM_FEEDBACK_ENABLED |
| 181 | LOCAL_SRC_FILES += audio_extn/dsm_feedback.c |
| 182 | endif |
| 183 | |
Aniket Kumar Lata | 2648301 | 2018-01-31 20:21:42 -0800 | [diff] [blame] | 184 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD)),true) |
| 185 | LOCAL_CFLAGS += -DA2DP_OFFLOAD_ENABLED |
| 186 | LOCAL_SRC_FILES += audio_extn/a2dp.c |
| 187 | endif |
| 188 | |
vincenttew | e56cd4b | 2018-08-02 15:39:33 +0800 | [diff] [blame] | 189 | ifneq ($(filter msm8992 msm8994 msm8996 msm8998 sdm845 sdm710,$(TARGET_BOARD_PLATFORM)),) |
Ravi Kumar Alamanda | 7631557 | 2015-04-23 13:13:56 -0700 | [diff] [blame] | 190 | # push codec/mad calibration to HW dep node |
| 191 | # applicable to msm8992/8994 or newer platforms |
| 192 | LOCAL_CFLAGS += -DHWDEP_CAL_ENABLED |
| 193 | LOCAL_SRC_FILES += audio_extn/hwdep_cal.c |
| 194 | endif |
| 195 | |
Haynes Mathew George | c735fb0 | 2016-06-30 18:00:28 -0700 | [diff] [blame] | 196 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SND_MONITOR)), true) |
| 197 | LOCAL_CFLAGS += -DSND_MONITOR_ENABLED |
| 198 | LOCAL_SRC_FILES += audio_extn/sndmonitor.c |
| 199 | endif |
| 200 | |
Haynes Mathew George | 65f6b43 | 2018-02-27 17:44:55 -0800 | [diff] [blame] | 201 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_USB_SERVICE_INTERVAL)), true) |
| 202 | LOCAL_CFLAGS += -DUSB_SERVICE_INTERVAL_ENABLED |
| 203 | endif |
| 204 | |
jasmine cha | 270b776 | 2018-03-30 15:41:33 +0800 | [diff] [blame] | 205 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MAXX_AUDIO)), true) |
| 206 | LOCAL_CFLAGS += -DMAXXAUDIO_QDSP_ENABLED |
| 207 | LOCAL_SRC_FILES += audio_extn/maxxaudio.c |
| 208 | endif |
| 209 | |
justinweng | c6347db | 2019-02-21 18:49:00 +0800 | [diff] [blame] | 210 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUDIO_ZOOM)), true) |
| 211 | LOCAL_CFLAGS += -DAUDIOZOOM_QDSP_ENABLED |
| 212 | LOCAL_SRC_FILES += audio_extn/audiozoom.c |
| 213 | endif |
| 214 | |
juyuchen | be5c67e | 2018-08-29 17:19:20 +0800 | [diff] [blame] | 215 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_24BITS_CAMCORDER)), true) |
| 216 | LOCAL_CFLAGS += -DENABLED_24BITS_CAMCORDER |
| 217 | endif |
| 218 | |
Ashish Jain | 1c84970 | 2018-05-11 20:11:55 +0530 | [diff] [blame] | 219 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_BG_CAL)),true) |
| 220 | LOCAL_CFLAGS += -DBG_CODEC_CAL |
| 221 | endif |
| 222 | |
Vignesh Kulothungan | 6469882 | 2018-01-23 11:25:18 -0800 | [diff] [blame] | 223 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS)),true) |
| 224 | LOCAL_CFLAGS += -DDYNAMIC_ECNS_ENABLED |
| 225 | endif |
| 226 | |
Wei Wang | 01cf84d | 2017-12-13 16:51:36 -0800 | [diff] [blame] | 227 | LOCAL_SHARED_LIBRARIES += libbase libhidlbase libhwbinder libutils android.hardware.power@1.2 liblog |
| 228 | |
| 229 | LOCAL_SRC_FILES += audio_perf.cpp |
Wei Wang | f4837d5 | 2017-11-21 14:51:20 -0800 | [diff] [blame] | 230 | |
Kevin Rocard | bae0dcb | 2018-01-24 06:13:37 +0000 | [diff] [blame] | 231 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
Jiyong Park | 6431fe6 | 2017-06-29 15:15:58 +0900 | [diff] [blame] | 232 | |
razorloves | 5060055 | 2018-10-03 11:09:43 -0500 | [diff] [blame^] | 233 | LOCAL_HEADER_LIBRARIES += generated_kernel_headers |
| 234 | |
Ravi Kumar Alamanda | 80e2d86 | 2014-05-05 16:00:33 -0700 | [diff] [blame] | 235 | LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM) |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 236 | |
Isaac Chen | 7c4fca2 | 2017-02-24 20:47:31 +0800 | [diff] [blame] | 237 | LOCAL_MODULE_RELATIVE_PATH := hw |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 238 | |
| 239 | LOCAL_MODULE_TAGS := optional |
| 240 | |
Diego Wilson | 8c83e0a | 2017-03-17 15:29:43 -0700 | [diff] [blame] | 241 | LOCAL_MODULE_OWNER := qcom |
| 242 | |
| 243 | LOCAL_PROPRIETARY_MODULE := true |
| 244 | |
Glenn Kasten | cf4cddf | 2016-11-09 10:49:03 -0800 | [diff] [blame] | 245 | LOCAL_CFLAGS += -Werror |
| 246 | |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 247 | include $(BUILD_SHARED_LIBRARY) |
| 248 | |
| 249 | endif |