blob: 13372727273d386e66f96f1881d08fd61a9fc32c
1 | # Copyright (C) 2011 The Android Open Source Project |
2 | # |
3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
4 | # you may not use this file except in compliance with the License. |
5 | # You may obtain a copy of the License at |
6 | # |
7 | # http://www.apache.org/licenses/LICENSE-2.0 |
8 | # |
9 | # Unless required by applicable law or agreed to in writing, software |
10 | # distributed under the License is distributed on an "AS IS" BASIS, |
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | # See the License for the specific language governing permissions and |
13 | # limitations under the License. |
14 | |
15 | ifeq ($(strip $(BOARD_ALSA_AUDIO)),tiny) |
16 | |
17 | LOCAL_PATH := $(call my-dir) |
18 | |
19 | # The default audio HAL module, which is a stub, that is loaded if no other |
20 | # device specific modules are present. The exact load order can be seen in |
21 | # libhardware/hardware.c |
22 | # |
23 | # The format of the name is audio.<type>.<hardware/etc>.so where the only |
24 | # required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc. |
25 | include $(CLEAR_VARS) |
26 | |
27 | LOCAL_MODULE := audio.primary.amlogic |
28 | LOCAL_MODULE_RELATIVE_PATH := hw |
29 | LOCAL_SRC_FILES := \ |
30 | audio_hw.c \ |
31 | libTVaudio/audio/audio_effect_control.c \ |
32 | audio_hw_utils.c \ |
33 | audio_hwsync.c \ |
34 | //spdifenc_wrap.cpp |
35 | LOCAL_C_INCLUDES += \ |
36 | external/tinyalsa/include \ |
37 | system/media/audio_utils/include \ |
38 | system/media/audio_effects/include \ |
39 | system/media/audio_route/include \ |
40 | libTVaudio/audio |
41 | |
42 | LOCAL_SHARED_LIBRARIES := \ |
43 | liblog libcutils libtinyalsa \ |
44 | libaudioutils libdl libaudioroute libutils \ |
45 | libaudiospdif |
46 | LOCAL_MODULE_TAGS := optional |
47 | |
48 | include $(BUILD_SHARED_LIBRARY) |
49 | |
50 | #build for USB audio |
51 | ifeq ($(strip $(BOARD_USE_USB_AUDIO)),true) |
52 | include $(CLEAR_VARS) |
53 | |
54 | LOCAL_MODULE := audio.usb.amlogic |
55 | LOCAL_MODULE_RELATIVE_PATH := hw |
56 | LOCAL_SRC_FILES := \ |
57 | usb_audio_hw.c \ |
58 | audio_resampler.c |
59 | LOCAL_C_INCLUDES += \ |
60 | external/tinyalsa/include \ |
61 | system/media/audio_utils/include |
62 | LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libaudioutils libutils |
63 | LOCAL_MODULE_TAGS := optional |
64 | |
65 | include $(BUILD_SHARED_LIBRARY) |
66 | endif # BOARD_USE_USB_AUDIO |
67 | |
68 | #build for hdmi audio HAL |
69 | ifeq ($(strip $(BOARD_USE_HDMI_HAL)),true) |
70 | include $(CLEAR_VARS) |
71 | |
72 | LOCAL_MODULE := audio.hdmi.amlogic |
73 | LOCAL_MODULE_RELATIVE_PATH := hw |
74 | LOCAL_SRC_FILES := \ |
75 | hdmi_audio_hw.c |
76 | LOCAL_C_INCLUDES += \ |
77 | external/tinyalsa/include \ |
78 | system/media/audio_effects/include \ |
79 | system/media/audio_utils/include |
80 | |
81 | LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libaudioutils libutils |
82 | #ifdef DOLBY_UDC_PASSTHROUGH_HDMI_PACK |
83 | LOCAL_SRC_FILES += spdifenc_wrap.cpp |
84 | LOCAL_C_INCLUDES += \ |
85 | $(call include-path-for, audio-utils) |
86 | LOCAL_SHARED_LIBRARIES += \ |
87 | libaudiospdif |
88 | #endif # DOLBY_UDC_PASSTHROUGH_HDMI_PACK |
89 | ifdef DOLBY_EAC3_TO_AC3_CONVERTER |
90 | LOCAL_SHARED_LIBRARIES += \ |
91 | libdlb_converter |
92 | endif # DOLBY_EAC3_TO_AC3_CONVERTER |
93 | LOCAL_SRC_FILES += audio_hw_profile.c |
94 | LOCAL_SRC_FILES += audio_hw_utils.c |
95 | LOCAL_SRC_FILES += audio_hwsync.c |
96 | LOCAL_MODULE_TAGS := optional |
97 | include $(BUILD_SHARED_LIBRARY) |
98 | endif # BOARD_USE_HDMI_HAL |
99 | endif # BOARD_ALSA_AUDIO |
100 | |
101 | ######################################################### |
102 | # Audio Policy Manager |
103 | ifeq ($(USE_CUSTOM_AUDIO_POLICY),1) |
104 | include $(CLEAR_VARS) |
105 | |
106 | LOCAL_SRC_FILES := \ |
107 | DLGAudioPolicyManager.cpp |
108 | |
109 | LOCAL_SHARED_LIBRARIES := \ |
110 | libcutils \ |
111 | liblog \ |
112 | libutils \ |
113 | libmedia \ |
114 | libbinder \ |
115 | libaudiopolicymanagerdefault \ |
116 | libutils |
117 | |
118 | LOCAL_C_INCLUDES := \ |
119 | external/tinyalsa/include \ |
120 | $(TOPDIR)frameworks/av/services/audiopolicy \ |
121 | $(TOPDIR)frameworks/av/services/audiopolicy/managerdefault \ |
122 | $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \ |
123 | $(TOPDIR)frameworks/av/services/audiopolicy/common/managerdefinitions/include \ |
124 | $(TOPDIR)frameworks/av/services/audiopolicy/common/include |
125 | |
126 | |
127 | LOCAL_MODULE := libaudiopolicymanager |
128 | LOCAL_MODULE_TAGS := optional |
129 | |
130 | include $(BUILD_SHARED_LIBRARY) |
131 | endif # USE_CUSTOM_AUDIO_POLICY |
132 | |
133 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
134 |