Home | History | Annotate | Download | only in hal
      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 
      9 AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
     10 ifneq ($(filter msm8974 msm8226,$(TARGET_BOARD_PLATFORM)),)
     11   # B-family platform uses msm8974 code base
     12   AUDIO_PLATFORM = msm8974
     13 endif
     14 
     15 LOCAL_SRC_FILES := \
     16 	audio_hw.c \
     17 	$(AUDIO_PLATFORM)/platform.c
     18 
     19 LOCAL_SHARED_LIBRARIES := \
     20 	liblog \
     21 	libcutils \
     22 	libtinyalsa \
     23 	libtinycompress \
     24 	libaudioroute \
     25 	libdl
     26 
     27 
     28 LOCAL_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 
     35 LOCAL_MODULE := audio.primary.$(AUDIO_PLATFORM)
     36 
     37 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
     38 
     39 LOCAL_MODULE_TAGS := optional
     40 
     41 include $(BUILD_SHARED_LIBRARY)
     42 
     43 endif
     44