summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/common
diff options
context:
space:
mode:
authorSharad Sangle <assangle@codeaurora.org>2015-07-25 01:04:41 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:25 -0600
commitc26afd6682bbd1adb6797e74ed8a68a4e624d138 (patch)
tree72076880271bfd804dab18f75d28422ea881774e /services/audiopolicy/common
parentbb9319b7254ef2e72c7473ad186618f6690e714f (diff)
downloadframeworks_av-c26afd6682bbd1adb6797e74ed8a68a4e624d138.zip
frameworks_av-c26afd6682bbd1adb6797e74ed8a68a4e624d138.tar.gz
frameworks_av-c26afd6682bbd1adb6797e74ed8a68a4e624d138.tar.bz2
audio: add support for WMA offload
Added WMA as a valid audio format in audio policy Change-Id: Iace14a011ebb89b9deeebd7fe04d0f9b1ab27c9e
Diffstat (limited to 'services/audiopolicy/common')
-rw-r--r--services/audiopolicy/common/managerdefinitions/Android.mk4
-rw-r--r--services/audiopolicy/common/managerdefinitions/include/ConfigParsingUtils.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/services/audiopolicy/common/managerdefinitions/Android.mk b/services/audiopolicy/common/managerdefinitions/Android.mk
index 062cb2e..7acc8d8 100644
--- a/services/audiopolicy/common/managerdefinitions/Android.mk
+++ b/services/audiopolicy/common/managerdefinitions/Android.mk
@@ -38,7 +38,11 @@ endif
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED
endif
+ifeq ($(strip $(AUDIO_FEATURE_ENABLED_WMA_OFFLOAD)),true)
+LOCAL_CFLAGS += -DWMA_OFFLOAD_ENABLED
endif
+endif
+
LOCAL_MODULE := libaudiopolicycomponents
include $(BUILD_STATIC_LIBRARY)
diff --git a/services/audiopolicy/common/managerdefinitions/include/ConfigParsingUtils.h b/services/audiopolicy/common/managerdefinitions/include/ConfigParsingUtils.h
index 31bf526..3fe4cfe 100644
--- a/services/audiopolicy/common/managerdefinitions/include/ConfigParsingUtils.h
+++ b/services/audiopolicy/common/managerdefinitions/include/ConfigParsingUtils.h
@@ -204,6 +204,10 @@ const StringToEnum sFormatNameToEnumTable[] = {
#ifdef FLAC_OFFLOAD_ENABLED
STRING_TO_ENUM(AUDIO_FORMAT_FLAC),
#endif
+#ifdef WMA_OFFLOAD_ENABLED
+ STRING_TO_ENUM(AUDIO_FORMAT_WMA),
+ STRING_TO_ENUM(AUDIO_FORMAT_WMA_PRO),
+#endif
STRING_TO_ENUM(AUDIO_FORMAT_PCM_16_BIT_OFFLOAD),
STRING_TO_ENUM(AUDIO_FORMAT_PCM_24_BIT_OFFLOAD),
};