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 | 80e2d86 | 2014-05-05 16:00:33 -0700 | [diff] [blame] | 10 | ifneq ($(filter msm8974 msm8226 msm8084,$(TARGET_BOARD_PLATFORM)),) |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 11 | # B-family platform uses msm8974 code base |
| 12 | AUDIO_PLATFORM = msm8974 |
Ravi Kumar Alamanda | 83281a9 | 2014-05-19 18:14:57 -0700 | [diff] [blame^] | 13 | ifneq ($(filter msm8084,$(TARGET_BOARD_PLATFORM)),) |
| 14 | LOCAL_CFLAGS := -DPLATFORM_MSM8084 |
| 15 | endif |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 16 | endif |
| 17 | |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 18 | LOCAL_SRC_FILES := \ |
| 19 | audio_hw.c \ |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 20 | $(AUDIO_PLATFORM)/platform.c |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 21 | |
| 22 | LOCAL_SHARED_LIBRARIES := \ |
| 23 | liblog \ |
| 24 | libcutils \ |
| 25 | libtinyalsa \ |
Ravi Kumar Alamanda | 4e02e55 | 2013-07-17 15:22:04 -0700 | [diff] [blame] | 26 | libtinycompress \ |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 27 | libaudioroute \ |
| 28 | libdl |
| 29 | |
| 30 | LOCAL_C_INCLUDES += \ |
| 31 | external/tinyalsa/include \ |
Ravi Kumar Alamanda | 4e02e55 | 2013-07-17 15:22:04 -0700 | [diff] [blame] | 32 | external/tinycompress/include \ |
Ravi Kumar Alamanda | f70ffb4 | 2013-04-16 15:55:53 -0700 | [diff] [blame] | 33 | $(call include-path-for, audio-route) \ |
Eric Laurent | b23d528 | 2013-05-14 15:27:20 -0700 | [diff] [blame] | 34 | $(call include-path-for, audio-effects) \ |
Ajay Dudani | be3335a | 2013-08-19 18:47:21 -0700 | [diff] [blame] | 35 | $(LOCAL_PATH)/$(AUDIO_PLATFORM) |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 36 | |
Ravi Kumar Alamanda | 83281a9 | 2014-05-19 18:14:57 -0700 | [diff] [blame^] | 37 | ifneq ($(filter msm8084,$(TARGET_BOARD_PLATFORM)),) |
| 38 | LOCAL_SHARED_LIBRARIES += libmdmdetect |
| 39 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/libmdmdetect/inc |
| 40 | endif |
| 41 | |
Ravi Kumar Alamanda | 80e2d86 | 2014-05-05 16:00:33 -0700 | [diff] [blame] | 42 | LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM) |
Ravi Kumar Alamanda | 2dfba2b | 2013-01-17 16:50:22 -0800 | [diff] [blame] | 43 | |
| 44 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 45 | |
| 46 | LOCAL_MODULE_TAGS := optional |
| 47 | |
| 48 | include $(BUILD_SHARED_LIBRARY) |
| 49 | |
| 50 | endif |