1# hardware/libaudio-alsa/Android.mk 2# 3# Copyright 2008 Wind River Systems 4# 5 6ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true) 7 8LOCAL_PATH := $(call my-dir) 9 10include $(CLEAR_VARS) 11 12LOCAL_ARM_MODE := arm 13LOCAL_CFLAGS := -D_POSIX_SOURCE 14LOCAL_CFLAGS += -DQCOM_CSDCLIENT_ENABLED 15LOCAL_CFLAGS += -DQCOM_ACDB_ENABLED 16 17ifeq ($(strip $(BOARD_USES_FLUENCE_INCALL)),true) 18LOCAL_CFLAGS += -DUSES_FLUENCE_INCALL 19endif 20 21ifeq ($(strip $(BOARD_USES_SEPERATED_AUDIO_INPUT)),true) 22LOCAL_CFLAGS += -DSEPERATED_AUDIO_INPUT 23endif 24 25LOCAL_SRC_FILES := \ 26 AudioHardwareALSA.cpp \ 27 AudioStreamOutALSA.cpp \ 28 AudioStreamInALSA.cpp \ 29 ALSAStreamOps.cpp \ 30 audio_hw_hal.cpp \ 31 AudioUsbALSA.cpp \ 32 AudioUtil.cpp 33 34LOCAL_STATIC_LIBRARIES := \ 35 libmedia_helper \ 36 libaudiohw_legacy \ 37 libaudiopolicy_legacy \ 38 39LOCAL_SHARED_LIBRARIES := \ 40 libcutils \ 41 libutils \ 42 libmedia \ 43 libhardware \ 44 libc \ 45 libpower \ 46 libalsa-intf 47 48LOCAL_SHARED_LIBRARIES += libdl 49 50LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-alsa 51LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/libalsa-intf 52LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/surround_sound/ 53LOCAL_C_INCLUDES += hardware/libhardware/include 54LOCAL_C_INCLUDES += hardware/libhardware_legacy/include 55LOCAL_C_INCLUDES += frameworks/base/include 56LOCAL_C_INCLUDES += system/core/include 57 58 59LOCAL_MODULE := audio.primary.msm8960 60LOCAL_MODULE_RELATIVE_PATH := hw 61LOCAL_MODULE_TAGS := optional 62 63include $(BUILD_SHARED_LIBRARY) 64 65# This is the ALSA audio policy manager 66 67include $(CLEAR_VARS) 68 69LOCAL_CFLAGS := -D_POSIX_SOURCE 70LOCAL_CFLAGS += -DQCOM_ACDB_ENABLED 71 72LOCAL_SRC_FILES := \ 73 audio_policy_hal.cpp \ 74 AudioPolicyManagerALSA.cpp 75 76LOCAL_MODULE := audio_policy.msm8960 77LOCAL_MODULE_RELATIVE_PATH := hw 78LOCAL_MODULE_TAGS := optional 79 80LOCAL_STATIC_LIBRARIES := \ 81 libmedia_helper \ 82 libaudiopolicy_legacy 83 84LOCAL_SHARED_LIBRARIES := \ 85 libcutils \ 86 libutils 87 88LOCAL_C_INCLUDES += hardware/libhardware_legacy/audio 89 90include $(BUILD_SHARED_LIBRARY) 91 92# This is the ALSA module which behaves closely like the original 93 94include $(CLEAR_VARS) 95 96 97LOCAL_MODULE_RELATIVE_PATH := hw 98 99LOCAL_CFLAGS := -D_POSIX_SOURCE -Wno-multichar 100LOCAL_CFLAGS += -DQCOM_ACDB_ENABLED 101 102ifeq ($(strip $(BOARD_USES_FLUENCE_INCALL)),true) 103LOCAL_CFLAGS += -DUSES_FLUENCE_INCALL 104endif 105 106ifeq ($(strip $(BOARD_USES_SEPERATED_AUDIO_INPUT)),true) 107LOCAL_CFLAGS += -DSEPERATED_AUDIO_INPUT 108endif 109 110ifneq ($(ALSA_DEFAULT_SAMPLE_RATE),) 111 LOCAL_CFLAGS += -DALSA_DEFAULT_SAMPLE_RATE=$(ALSA_DEFAULT_SAMPLE_RATE) 112endif 113 114LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/libalsa-intf 115 116LOCAL_SRC_FILES:= \ 117 alsa_default.cpp \ 118 ALSAControl.cpp \ 119 AudioUtil.cpp 120 121LOCAL_SHARED_LIBRARIES := \ 122 libcutils \ 123 liblog \ 124 libalsa-intf 125 126LOCAL_SHARED_LIBRARIES += libdl 127 128LOCAL_MODULE:= alsa.msm8960 129LOCAL_MODULE_TAGS := optional 130 131 include $(BUILD_SHARED_LIBRARY) 132endif 133