forked from TeamICS/ICS_Fixes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libaudiohw_legacy.patch
36 lines (34 loc) · 990 Bytes
/
libaudiohw_legacy.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/audio/Android.mk b/audio/Android.mk
index ef41374..1cdd3a9 100644
--- a/audio/Android.mk
+++ b/audio/Android.mk
@@ -77,17 +77,21 @@ include $(BUILD_SHARED_LIBRARY)
#ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true)
# LOCAL_CFLAGS += -D GENERIC_AUDIO
#endif
+include $(CLEAR_VARS)
+ifeq ($(BOARD_HAVE_BLUETOOTH),true)
+ LOCAL_SRC_FILES += A2dpAudioInterface.cpp
+ LOCAL_SHARED_LIBRARIES += audio.a2dp.default
+ LOCAL_C_INCLUDES += $(call include-path-for, bluez)
+
+ LOCAL_CFLAGS += \
+ -DWITH_BLUETOOTH \
+ -DWITH_A2DP
+
+LOCAL_MODULE := A2dpAudioInterface
+LOCAL_MODULE_TAGS := optional
+include $(BUILD_STATIC_LIBRARY)
+endif
-#ifeq ($(BOARD_HAVE_BLUETOOTH),true)
-# LOCAL_SRC_FILES += A2dpAudioInterface.cpp
-# LOCAL_SHARED_LIBRARIES += liba2dp
-# LOCAL_C_INCLUDES += $(call include-path-for, bluez)
-#
-# LOCAL_CFLAGS += \
-# -DWITH_BLUETOOTH \
-# -DWITH_A2DP
-#endif
-#
#include $(BUILD_SHARED_LIBRARY)
# AudioHardwareGeneric.cpp \