1ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true) 2 3LOCAL_PATH := $(call my-dir) 4 5include $(CLEAR_VARS) 6 7LOCAL_ARM_MODE := arm 8 9AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) 10ifneq ($(filter msm8974 msm8226,$(TARGET_BOARD_PLATFORM)),) 11 # B-family platform uses msm8974 code base 12 AUDIO_PLATFORM = msm8974 13endif 14 15LOCAL_SRC_FILES := \ 16 audio_hw.c \ 17 $(AUDIO_PLATFORM)/platform.c 18 19LOCAL_SHARED_LIBRARIES := \ 20 liblog \ 21 libcutils \ 22 libtinyalsa \ 23 libtinycompress \ 24 libaudioroute \ 25 libdl 26 27 28LOCAL_C_INCLUDES += \ 29 external/tinyalsa/include \ 30 external/tinycompress/include \ 31 $(call include-path-for, audio-route) \ 32 $(call include-path-for, audio-effects) \ 33 $(LOCAL_PATH)/$(AUDIO_PLATFORM) 34 35LOCAL_MODULE := audio.primary.$(AUDIO_PLATFORM) 36 37LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw 38 39LOCAL_MODULE_TAGS := optional 40 41include $(BUILD_SHARED_LIBRARY) 42 43endif 44