• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
61LOCAL_LICENSE_CONDITIONS := notice
62LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
63LOCAL_MODULE_RELATIVE_PATH := hw
64LOCAL_MODULE_TAGS := optional
65
66include $(BUILD_SHARED_LIBRARY)
67
68# This is the ALSA audio policy manager
69
70include $(CLEAR_VARS)
71
72LOCAL_CFLAGS := -D_POSIX_SOURCE
73LOCAL_CFLAGS += -DQCOM_ACDB_ENABLED
74
75LOCAL_SRC_FILES := \
76    audio_policy_hal.cpp \
77    AudioPolicyManagerALSA.cpp
78
79LOCAL_MODULE := audio_policy.msm8960
80LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
81LOCAL_LICENSE_CONDITIONS := notice
82LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
83LOCAL_MODULE_RELATIVE_PATH := hw
84LOCAL_MODULE_TAGS := optional
85
86LOCAL_STATIC_LIBRARIES := \
87    libmedia_helper \
88    libaudiopolicy_legacy
89
90LOCAL_SHARED_LIBRARIES := \
91    libcutils \
92    libutils
93
94LOCAL_C_INCLUDES += hardware/libhardware_legacy/audio
95
96include $(BUILD_SHARED_LIBRARY)
97
98# This is the ALSA module which behaves closely like the original
99
100include $(CLEAR_VARS)
101
102
103LOCAL_MODULE_RELATIVE_PATH := hw
104
105LOCAL_CFLAGS := -D_POSIX_SOURCE -Wno-multichar
106LOCAL_CFLAGS += -DQCOM_ACDB_ENABLED
107
108ifeq ($(strip $(BOARD_USES_FLUENCE_INCALL)),true)
109LOCAL_CFLAGS += -DUSES_FLUENCE_INCALL
110endif
111
112ifeq ($(strip $(BOARD_USES_SEPERATED_AUDIO_INPUT)),true)
113LOCAL_CFLAGS += -DSEPERATED_AUDIO_INPUT
114endif
115
116ifneq ($(ALSA_DEFAULT_SAMPLE_RATE),)
117    LOCAL_CFLAGS += -DALSA_DEFAULT_SAMPLE_RATE=$(ALSA_DEFAULT_SAMPLE_RATE)
118endif
119
120LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/libalsa-intf
121
122LOCAL_SRC_FILES:= \
123    alsa_default.cpp \
124    ALSAControl.cpp \
125    AudioUtil.cpp
126
127LOCAL_SHARED_LIBRARIES := \
128    libcutils \
129    liblog    \
130    libalsa-intf
131
132LOCAL_SHARED_LIBRARIES += libdl
133
134LOCAL_MODULE:= alsa.msm8960
135LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
136LOCAL_LICENSE_CONDITIONS:= notice
137LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/NOTICE
138LOCAL_MODULE_TAGS := optional
139
140  include $(BUILD_SHARED_LIBRARY)
141endif
142