summaryrefslogtreecommitdiffstats
path: root/audio/Android.mk
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-02-17 10:55:44 -0800
committerEric Laurent <elaurent@google.com>2012-03-07 17:53:49 -0800
commitb4696fc22ba822ed37bd2e3a19bc17514ccc79c8 (patch)
treef1b48da49653051f22f99e375b7c669f0cb16188 /audio/Android.mk
parent77d789de2664ebab2e38448c78edc41487dc8158 (diff)
downloadhardware_libhardware_legacy-b4696fc22ba822ed37bd2e3a19bc17514ccc79c8.zip
hardware_libhardware_legacy-b4696fc22ba822ed37bd2e3a19bc17514ccc79c8.tar.gz
hardware_libhardware_legacy-b4696fc22ba822ed37bd2e3a19bc17514ccc79c8.tar.bz2
audio policy manager: more generic A2DP impl.
This change makes support for A2DP related audio policy more generic: -removed WITH_A2DP compilation switch -use output profile descriptors listing the parameters (sampling rate, format...) devices and attributes (low power, tunneling...) for each available output. All the behavior specific to A2DP is derived from the A2DP output profile descriptor. - removed obsolete a2dpUsedForSonification() method. This is a first step towards a more generic support for different audio hardware modules (USB, HDMI) and output streams supporting different combinations of parameters (sampling rate, format...) and attributes (low power, tunneling...). Ultimately, the hw modules and output descriptors will loaded from a configuration file. Change-Id: Ife3e49e1afbcb72613bfc8ce38919bb087ca85ea
Diffstat (limited to 'audio/Android.mk')
-rw-r--r--audio/Android.mk13
1 files changed, 0 insertions, 13 deletions
diff --git a/audio/Android.mk b/audio/Android.mk
index ef41374..58f03c3 100644
--- a/audio/Android.mk
+++ b/audio/Android.mk
@@ -10,10 +10,6 @@ LOCAL_SRC_FILES := \
AudioHardwareInterface.cpp \
audio_hw_hal.cpp
-ifeq ($(BOARD_HAVE_BLUETOOTH),true)
- LOCAL_CFLAGS += -DWITH_A2DP
-endif
-
LOCAL_MODULE := libaudiohw_legacy
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_LIBRARIES := libmedia_helper
@@ -31,10 +27,6 @@ ifeq ($(AUDIO_POLICY_TEST),true)
LOCAL_CFLAGS += -DAUDIO_POLICY_TEST
endif
-ifeq ($(BOARD_HAVE_BLUETOOTH),true)
- LOCAL_CFLAGS += -DWITH_A2DP
-endif
-
LOCAL_STATIC_LIBRARIES := libmedia_helper
LOCAL_MODULE := libaudiopolicy_legacy
LOCAL_MODULE_TAGS := optional
@@ -63,10 +55,6 @@ LOCAL_MODULE := audio_policy.default
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
-ifeq ($(BOARD_HAVE_BLUETOOTH),true)
- LOCAL_CFLAGS += -DWITH_A2DP
-endif
-
include $(BUILD_SHARED_LIBRARY)
#ifeq ($(ENABLE_AUDIO_DUMP),true)
@@ -85,7 +73,6 @@ include $(BUILD_SHARED_LIBRARY)
#
# LOCAL_CFLAGS += \
# -DWITH_BLUETOOTH \
-# -DWITH_A2DP
#endif
#
#include $(BUILD_SHARED_LIBRARY)