summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/common
diff options
context:
space:
mode:
authorSharad Sangle <assangle@codeaurora.org>2015-07-24 11:19:31 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:21 -0600
commitc7dc911aa79d40e0f6e1ee40aeda07c1d1807240 (patch)
treec7ee91169dc393e3a4dbc0b9cac97ae3c2dd0574 /services/audiopolicy/common
parent04215532c2d6b4be11b94f336d51e1c6ab32ab3f (diff)
downloadframeworks_av-c7dc911aa79d40e0f6e1ee40aeda07c1d1807240.zip
frameworks_av-c7dc911aa79d40e0f6e1ee40aeda07c1d1807240.tar.gz
frameworks_av-c7dc911aa79d40e0f6e1ee40aeda07c1d1807240.tar.bz2
audiopolicy: make audio policy extensible
make function virtual or protected so that they can be extended in custom audio policy also add flag in Android.mk so that proxy device get added in device list when proxy is enabled Change-Id: Ida7992f6b327491fab1f4ea376e85e8eb34b89ca
Diffstat (limited to 'services/audiopolicy/common')
-rw-r--r--services/audiopolicy/common/managerdefinitions/Android.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/audiopolicy/common/managerdefinitions/Android.mk b/services/audiopolicy/common/managerdefinitions/Android.mk
index 81b0a7a..062cb2e 100644
--- a/services/audiopolicy/common/managerdefinitions/Android.mk
+++ b/services/audiopolicy/common/managerdefinitions/Android.mk
@@ -30,12 +30,15 @@ LOCAL_C_INCLUDES += \
LOCAL_EXPORT_C_INCLUDE_DIRS := \
$(LOCAL_PATH)/include
+
ifeq ($(call is-vendor-board-platform,QCOM),true)
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD)),true)
LOCAL_CFLAGS += -DFLAC_OFFLOAD_ENABLED
endif
+ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
+LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED
+endif
endif
-
LOCAL_MODULE := libaudiopolicycomponents
include $(BUILD_STATIC_LIBRARY)