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 | |
Mingming Yin | 89c6a7f | 2015-03-24 11:56:14 -0700 | [diff] [blame] | 11 | ifneq ($(filter msm8974 msm8226 msm8610 apq8084 msm8994 msm8992 msm8996,$(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 |
Mingming Yin | 0e1b290 | 2014-05-19 18:20:59 -0700 | [diff] [blame] | 24 | ifneq ($(filter msm8994,$(TARGET_BOARD_PLATFORM)),) |
| 25 | LOCAL_CFLAGS := -DPLATFORM_MSM8994 |
| 26 | endif |
Fred Oh | 68ad1d3 | 2014-12-09 13:08:07 -0800 | [diff] [blame] | 27 | ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),) |
| 28 | LOCAL_CFLAGS := -DPLATFORM_MSM8994 |
| 29 | endif |
Mingming Yin | 89c6a7f | 2015-03-24 11:56:14 -0700 | [diff] [blame] | 30 | ifneq ($(filter msm8996,$(TARGET_BOARD_PLATFORM)),) |
| 31 | LOCAL_CFLAGS := -DPLATFORM_MSM8996 |
Banajit Goswami | 22582e7 | 2014-10-15 18:29:34 -0700 | [diff] [blame] | 32 | endif |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 33 | endif |
| 34 | |
Naresh Tanniru | 0d28b4a | 2015-03-23 00:58:49 +0530 | [diff] [blame] | 35 | ifneq ($(filter msm8916 msm8909 msm8952,$(TARGET_BOARD_PLATFORM)),) |
Naresh Tanniru | db72d1e | 2014-03-05 17:33:47 +0530 | [diff] [blame] | 36 | AUDIO_PLATFORM = msm8916 |
| 37 | MULTIPLE_HW_VARIANTS_ENABLED := true |
| 38 | LOCAL_CFLAGS := -DPLATFORM_MSM8916 |
padarshr | 04e7481 | 2014-09-17 13:34:31 +0530 | [diff] [blame] | 39 | ifneq ($(filter msm8909,$(TARGET_BOARD_PLATFORM)),) |
Dhananjay Kumar | 2bb2fc1 | 2014-07-11 19:14:23 +0530 | [diff] [blame] | 40 | LOCAL_CFLAGS := -DPLATFORM_MSM8909 |
| 41 | endif |
Naresh Tanniru | db72d1e | 2014-03-05 17:33:47 +0530 | [diff] [blame] | 42 | endif |
Naresh Tanniru | 8b919ac | 2014-01-30 19:12:53 +0530 | [diff] [blame] | 43 | |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 44 | LOCAL_SRC_FILES := \ |
| 45 | audio_hw.c \ |
Shiv Maliyappanahalli | 34b585f | 2013-10-01 15:49:05 -0700 | [diff] [blame] | 46 | voice.c \ |
Ben Romberger | 61764e3 | 2014-01-10 13:49:02 -0800 | [diff] [blame] | 47 | platform_info.c \ |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 48 | $(AUDIO_PLATFORM)/platform.c |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 49 | |
Subhash Chandra Bose Naripeddy | 19dc03b | 2014-03-10 14:43:05 -0700 | [diff] [blame] | 50 | LOCAL_SRC_FILES += audio_extn/audio_extn.c \ |
| 51 | audio_extn/utils.c |
Vidyakumar Athota | 21b3bb9 | 2014-04-25 11:08:08 -0700 | [diff] [blame] | 52 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 53 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Apoorv Raghuvanshi | 9eaf94e | 2013-10-04 16:13:44 -0700 | [diff] [blame] | 54 | |
Mingming Yin | e5bf837 | 2015-02-26 15:03:10 -0800 | [diff] [blame] | 55 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_EDID)),true) |
Mingming Yin | 497419f | 2015-07-01 16:57:32 -0700 | [diff] [blame] | 56 | LOCAL_CFLAGS += -DHDMI_EDID |
Pradnya Chaphekar | 4403bd7 | 2014-09-09 09:50:01 -0700 | [diff] [blame] | 57 | LOCAL_SRC_FILES += edid.c |
| 58 | endif |
| 59 | |
Mingming Yin | 08c7e31 | 2015-03-16 18:10:58 -0700 | [diff] [blame] | 60 | ifeq ($(strip $(AUDIO_USE_LL_AS_PRIMARY_OUTPUT)),true) |
| 61 | LOCAL_CFLAGS += -DUSE_LL_AS_PRIMARY_OUTPUT |
| 62 | endif |
| 63 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 64 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true) |
Mingming Yin | 67e3451 | 2014-04-03 17:47:22 -0700 | [diff] [blame] | 65 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED |
| 66 | endif |
| 67 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 68 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ANC_HEADSET)),true) |
Apoorv Raghuvanshi | 9eaf94e | 2013-10-04 16:13:44 -0700 | [diff] [blame] | 69 | LOCAL_CFLAGS += -DANC_HEADSET_ENABLED |
| 70 | endif |
| 71 | |
Banajit Goswami | 20cdd21 | 2015-09-11 01:11:30 -0700 | [diff] [blame] | 72 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VBAT_MONITOR)),true) |
| 73 | LOCAL_CFLAGS += -DVBAT_MONITOR_ENABLED |
| 74 | endif |
| 75 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 76 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FLUENCE)),true) |
Venkata Narendra Kumar Gutta | 88fd0bc | 2014-03-27 19:47:56 +0530 | [diff] [blame] | 77 | LOCAL_CFLAGS += -DFLUENCE_ENABLED |
| 78 | endif |
| 79 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 80 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) |
Apoorv Raghuvanshi | 9eaf94e | 2013-10-04 16:13:44 -0700 | [diff] [blame] | 81 | LOCAL_CFLAGS += -DAFE_PROXY_ENABLED |
| 82 | endif |
| 83 | |
Sudheer Papothi | 390bcf3 | 2014-12-04 01:25:17 +0530 | [diff] [blame] | 84 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE)),true) |
| 85 | LOCAL_CFLAGS += -DKPI_OPTIMIZE_ENABLED |
| 86 | endif |
| 87 | |
Mingming Yin | 12125e8 | 2015-10-26 20:40:36 -0700 | [diff] [blame^] | 88 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true) |
| 89 | LOCAL_CFLAGS += -DFM_POWER_OPT |
Apoorv Raghuvanshi | 6e26284 | 2013-10-06 14:39:35 -0700 | [diff] [blame] | 90 | LOCAL_SRC_FILES += audio_extn/fm.c |
| 91 | endif |
| 92 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 93 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_USBAUDIO)),true) |
Apoorv Raghuvanshi | 5792d4b | 2013-10-07 18:40:05 -0700 | [diff] [blame] | 94 | LOCAL_CFLAGS += -DUSB_HEADSET_ENABLED |
| 95 | LOCAL_SRC_FILES += audio_extn/usb.c |
| 96 | endif |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 97 | |
| 98 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HFP)),true) |
Vimal Puthanveed | 5b4d3f1 | 2013-11-05 15:57:39 -0800 | [diff] [blame] | 99 | LOCAL_CFLAGS += -DHFP_ENABLED |
| 100 | LOCAL_SRC_FILES += audio_extn/hfp.c |
| 101 | endif |
Apoorv Raghuvanshi | 5792d4b | 2013-10-07 18:40:05 -0700 | [diff] [blame] | 102 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 103 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_CUSTOMSTEREO)),true) |
Jitendra Singh Naruka | 9a6a8d4 | 2014-02-10 20:07:12 -0800 | [diff] [blame] | 104 | LOCAL_CFLAGS += -DCUSTOM_STEREO_ENABLED |
| 105 | endif |
| 106 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 107 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SSR)),true) |
Apoorv Raghuvanshi | 6178a3f | 2013-10-19 12:38:54 -0700 | [diff] [blame] | 108 | LOCAL_CFLAGS += -DSSR_ENABLED |
| 109 | LOCAL_SRC_FILES += audio_extn/ssr.c |
| 110 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/surround_sound/ |
Nagender Telkar | ca2b494 | 2014-03-24 12:25:42 -0600 | [diff] [blame] | 111 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/common/inc/ |
Apoorv Raghuvanshi | 6178a3f | 2013-10-19 12:38:54 -0700 | [diff] [blame] | 112 | endif |
| 113 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 114 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS)),true) |
Shiv Maliyappanahalli | 303f51d | 2013-10-25 16:24:27 -0700 | [diff] [blame] | 115 | LOCAL_CFLAGS += -DMULTI_VOICE_SESSION_ENABLED |
| 116 | LOCAL_SRC_FILES += voice_extn/voice_extn.c |
Vidyakumar Athota | 21b3bb9 | 2014-04-25 11:08:08 -0700 | [diff] [blame] | 117 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 118 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INCALL_MUSIC)),true) |
Shiv Maliyappanahalli | 303f51d | 2013-10-25 16:24:27 -0700 | [diff] [blame] | 119 | LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED |
| 120 | endif |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 121 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_VOIP)),true) |
Narsinga Rao Chella | 05573b7 | 2013-11-15 15:21:40 -0800 | [diff] [blame] | 122 | LOCAL_CFLAGS += -DCOMPRESS_VOIP_ENABLED |
| 123 | LOCAL_SRC_FILES += voice_extn/compress_voip.c |
| 124 | endif |
Subhash Chandra Bose Naripeddy | 19dc03b | 2014-03-10 14:43:05 -0700 | [diff] [blame] | 125 | |
| 126 | endif |
| 127 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 128 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true) |
Satya Krishna Pindiproli | 5d82d01 | 2015-08-12 18:21:25 +0530 | [diff] [blame] | 129 | LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED |
Gopikrishnaiah Anandan | f538cef | 2013-10-28 14:06:03 -0700 | [diff] [blame] | 130 | endif |
Shiv Maliyappanahalli | 303f51d | 2013-10-25 16:24:27 -0700 | [diff] [blame] | 131 | |
Anish Kumar | d80a139 | 2014-07-16 16:18:51 -0700 | [diff] [blame] | 132 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPKR_PROTECTION)),true) |
Gopikrishnaiah Anandan | f538cef | 2013-10-28 14:06:03 -0700 | [diff] [blame] | 133 | LOCAL_CFLAGS += -DSPKR_PROT_ENABLED |
| 134 | LOCAL_SRC_FILES += audio_extn/spkr_protection.c |
Gopikrishnaiah Anandan | f538cef | 2013-10-28 14:06:03 -0700 | [diff] [blame] | 135 | endif |
Shiv Maliyappanahalli | 303f51d | 2013-10-25 16:24:27 -0700 | [diff] [blame] | 136 | |
Ravi Kumar Alamanda | 48c921d | 2013-10-29 06:07:44 -0700 | [diff] [blame] | 137 | ifdef MULTIPLE_HW_VARIANTS_ENABLED |
| 138 | LOCAL_CFLAGS += -DHW_VARIANTS_ENABLED |
| 139 | LOCAL_SRC_FILES += $(AUDIO_PLATFORM)/hw_info.c |
| 140 | endif |
| 141 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 142 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE)),true) |
Mingming Yin | e62d784 | 2013-10-25 16:26:03 -0700 | [diff] [blame] | 143 | LOCAL_CFLAGS += -DCOMPRESS_CAPTURE_ENABLED |
| 144 | LOCAL_SRC_FILES += audio_extn/compress_capture.c |
| 145 | endif |
| 146 | |
Jitendra Naruka | 1b6513f | 2014-11-22 19:34:13 -0800 | [diff] [blame] | 147 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)),true) |
| 148 | LOCAL_CFLAGS += -DDTS_EAGLE |
| 149 | LOCAL_SRC_FILES += audio_extn/dts_eagle.c |
| 150 | endif |
| 151 | |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 152 | ifeq ($(strip $(DOLBY_DDP)),true) |
Mingming Yin | 9031010 | 2013-11-13 16:57:00 -0800 | [diff] [blame] | 153 | LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED |
Subhash Chandra Bose Naripeddy | 7690c56 | 2013-12-14 00:34:53 -0800 | [diff] [blame] | 154 | LOCAL_SRC_FILES += audio_extn/dolby.c |
Mingming Yin | 9031010 | 2013-11-13 16:57:00 -0800 | [diff] [blame] | 155 | endif |
| 156 | |
Pradnya Chaphekar | 73e2e8b | 2015-05-01 02:18:17 -0700 | [diff] [blame] | 157 | ifeq ($(strip $(DS1_DOLBY_DAP)),true) |
Subhash Chandra Bose Naripeddy | 7690c56 | 2013-12-14 00:34:53 -0800 | [diff] [blame] | 158 | LOCAL_CFLAGS += -DDS1_DOLBY_DAP_ENABLED |
Mingming Yin | a6dad60 | 2014-05-16 12:10:55 -0700 | [diff] [blame] | 159 | ifneq ($(strip $(DOLBY_DDP)),true) |
Subhash Chandra Bose Naripeddy | 7690c56 | 2013-12-14 00:34:53 -0800 | [diff] [blame] | 160 | LOCAL_SRC_FILES += audio_extn/dolby.c |
| 161 | endif |
| 162 | endif |
| 163 | |
Mingming Yin | 3ee55c6 | 2014-08-04 14:23:35 -0700 | [diff] [blame] | 164 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER)),true) |
Satya Krishna Pindiproli | 7047160 | 2015-04-24 19:12:43 +0530 | [diff] [blame] | 165 | LOCAL_CFLAGS += -DFLAC_OFFLOAD_ENABLED |
| 166 | LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED |
| 167 | endif |
| 168 | |
| 169 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD)),true) |
| 170 | LOCAL_CFLAGS += -DVORBIS_OFFLOAD_ENABLED |
| 171 | LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED |
| 172 | |
| 173 | endif |
| 174 | |
| 175 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_WMA_OFFLOAD)),true) |
| 176 | LOCAL_CFLAGS += -DWMA_OFFLOAD_ENABLED |
| 177 | LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED |
| 178 | endif |
| 179 | |
| 180 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD)),true) |
| 181 | LOCAL_CFLAGS += -DALAC_OFFLOAD_ENABLED |
| 182 | LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED |
| 183 | endif |
| 184 | |
| 185 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_APE_OFFLOAD)),true) |
| 186 | LOCAL_CFLAGS += -DAPE_OFFLOAD_ENABLED |
| 187 | LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED |
Mingming Yin | 3ee55c6 | 2014-08-04 14:23:35 -0700 | [diff] [blame] | 188 | endif |
| 189 | |
Vidyakumar Athota | c1d39c9 | 2015-02-25 15:14:26 -0800 | [diff] [blame] | 190 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true) |
| 191 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24 |
| 192 | endif |
| 193 | |
Manish Dewangan | a6fc544 | 2015-08-24 20:30:31 +0530 | [diff] [blame] | 194 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true) |
| 195 | LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED |
| 196 | endif |
| 197 | |
Lior Barenboim | 0b61bc7 | 2014-05-13 13:01:37 +0300 | [diff] [blame] | 198 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true) |
| 199 | LOCAL_CFLAGS += -DDEV_ARBI_ENABLED |
| 200 | LOCAL_SRC_FILES += audio_extn/dev_arbi.c |
| 201 | endif |
| 202 | |
Naresh Tanniru | c0517bc | 2014-10-26 15:30:55 +0530 | [diff] [blame] | 203 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true) |
| 204 | LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY |
| 205 | endif |
| 206 | |
Ashish Jain | 8ec5047 | 2014-10-16 13:56:28 +0530 | [diff] [blame] | 207 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ACDB_LICENSE)), true) |
| 208 | LOCAL_CFLAGS += -DDOLBY_ACDB_LICENSE |
| 209 | endif |
| 210 | |
Pradnya Chaphekar | 8a9dcd8 | 2014-09-09 09:49:10 -0700 | [diff] [blame] | 211 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP)),true) |
| 212 | LOCAL_CFLAGS += -DDS2_DOLBY_DAP_ENABLED |
Pradnya Chaphekar | 73e2e8b | 2015-05-01 02:18:17 -0700 | [diff] [blame] | 213 | LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED |
Pradnya Chaphekar | 8a9dcd8 | 2014-09-09 09:49:10 -0700 | [diff] [blame] | 214 | ifneq ($(strip $(DOLBY_DDP)),true) |
Pradnya Chaphekar | 73e2e8b | 2015-05-01 02:18:17 -0700 | [diff] [blame] | 215 | ifneq ($(strip $(DS1_DOLBY_DAP)),true) |
Pradnya Chaphekar | 8a9dcd8 | 2014-09-09 09:49:10 -0700 | [diff] [blame] | 216 | LOCAL_SRC_FILES += audio_extn/dolby.c |
| 217 | endif |
| 218 | endif |
| 219 | endif |
| 220 | |
Pradnya Chaphekar | 80a8cfb | 2014-10-20 16:17:01 -0700 | [diff] [blame] | 221 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH)),true) |
| 222 | LOCAL_CFLAGS += -DHDMI_PASSTHROUGH_ENABLED |
| 223 | endif |
| 224 | |
Narsinga Rao Chella | f928a98 | 2015-03-06 14:57:35 -0800 | [diff] [blame] | 225 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SOURCE_TRACKING)),true) |
| 226 | LOCAL_CFLAGS += -DSOURCE_TRACKING_ENABLED |
| 227 | LOCAL_SRC_FILES += audio_extn/source_track.c |
| 228 | endif |
| 229 | |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 230 | LOCAL_SHARED_LIBRARIES := \ |
| 231 | liblog \ |
| 232 | libcutils \ |
| 233 | libtinyalsa \ |
Ravi Kumar Alamanda | 4e02e55 | 2013-07-17 15:22:04 -0700 | [diff] [blame] | 234 | libtinycompress \ |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 235 | libaudioroute \ |
Ben Romberger | 61764e3 | 2014-01-10 13:49:02 -0800 | [diff] [blame] | 236 | libdl \ |
Vidyakumar Athota | 77327dd | 2014-08-07 16:44:25 -0700 | [diff] [blame] | 237 | libexpat |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 238 | |
| 239 | LOCAL_C_INCLUDES += \ |
| 240 | external/tinyalsa/include \ |
Ravi Kumar Alamanda | 4e02e55 | 2013-07-17 15:22:04 -0700 | [diff] [blame] | 241 | external/tinycompress/include \ |
Ben Romberger | 61764e3 | 2014-01-10 13:49:02 -0800 | [diff] [blame] | 242 | external/expat/lib \ |
Ravi Kumar Alamanda | f70ffb4 | 2013-04-16 15:55:53 -0700 | [diff] [blame] | 243 | $(call include-path-for, audio-route) \ |
Eric Laurent | b23d528 | 2013-05-14 15:27:20 -0700 | [diff] [blame] | 244 | $(call include-path-for, audio-effects) \ |
Apoorv Raghuvanshi | 9eaf94e | 2013-10-04 16:13:44 -0700 | [diff] [blame] | 245 | $(LOCAL_PATH)/$(AUDIO_PLATFORM) \ |
Narsinga Rao Chella | 05573b7 | 2013-11-15 15:21:40 -0800 | [diff] [blame] | 246 | $(LOCAL_PATH)/audio_extn \ |
Vidyakumar Athota | 77327dd | 2014-08-07 16:44:25 -0700 | [diff] [blame] | 247 | $(LOCAL_PATH)/voice_extn |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 248 | |
Kiran Kandi | 910e186 | 2013-10-29 13:29:42 -0700 | [diff] [blame] | 249 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_LISTEN)),true) |
| 250 | LOCAL_CFLAGS += -DAUDIO_LISTEN_ENABLED |
| 251 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-listen |
| 252 | LOCAL_SRC_FILES += audio_extn/listen.c |
| 253 | endif |
| 254 | |
Ashish Jain | 81eb2a8 | 2015-05-13 10:52:34 +0530 | [diff] [blame] | 255 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXT_HDMI)),true) |
| 256 | LOCAL_CFLAGS += -DAUDIO_EXTERNAL_HDMI_ENABLED |
| 257 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH)),true) |
| 258 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-parsers |
| 259 | LOCAL_SHARED_LIBRARIES += libaudioparsers |
| 260 | endif |
| 261 | endif |
| 262 | |
Ravi Kumar Alamanda | 8fa6b19 | 2014-09-09 16:06:42 -0700 | [diff] [blame] | 263 | ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true) |
| 264 | LOCAL_CFLAGS += -DSOUND_TRIGGER_ENABLED |
| 265 | LOCAL_CFLAGS += -DSOUND_TRIGGER_PLATFORM_NAME=$(TARGET_BOARD_PLATFORM) |
| 266 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/sound_trigger |
| 267 | LOCAL_SRC_FILES += audio_extn/soundtrigger.c |
| 268 | endif |
| 269 | |
Damir Didjusto | f1d46c7 | 2013-11-06 17:59:04 -0800 | [diff] [blame] | 270 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUXPCM_BT)),true) |
| 271 | LOCAL_CFLAGS += -DAUXPCM_BT_ENABLED |
| 272 | endif |
| 273 | |
Preetam Singh Ranawat | 2d0e463 | 2015-02-02 12:40:59 +0530 | [diff] [blame] | 274 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PM_SUPPORT)),true) |
| 275 | LOCAL_CFLAGS += -DPM_SUPPORT_ENABLED |
| 276 | LOCAL_SRC_FILES += audio_extn/pm.c |
| 277 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/libperipheralclient/inc |
| 278 | LOCAL_SHARED_LIBRARIES += libperipheral_client |
| 279 | endif |
| 280 | |
Mingming Yin | 5b7c0b3 | 2014-08-04 15:49:24 -0700 | [diff] [blame] | 281 | LOCAL_COPY_HEADERS_TO := mm-audio |
| 282 | LOCAL_COPY_HEADERS := audio_extn/audio_defs.h |
| 283 | |
Mingming Yin | 8e5a4f6 | 2013-10-07 15:23:41 -0700 | [diff] [blame] | 284 | LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM) |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 285 | |
Apoorv Raghuvanshi | 1b555f7 | 2014-05-29 12:48:15 -0700 | [diff] [blame] | 286 | LOCAL_MODULE_RELATIVE_PATH := hw |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 287 | |
| 288 | LOCAL_MODULE_TAGS := optional |
| 289 | |
| 290 | include $(BUILD_SHARED_LIBRARY) |
| 291 | |
| 292 | endif |