diff options
author | Sharad Sangle <assangle@codeaurora.org> | 2015-07-25 01:04:41 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:24:25 -0600 |
commit | c26afd6682bbd1adb6797e74ed8a68a4e624d138 (patch) | |
tree | 72076880271bfd804dab18f75d28422ea881774e /services/audiopolicy | |
parent | bb9319b7254ef2e72c7473ad186618f6690e714f (diff) | |
download | frameworks_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')
-rw-r--r-- | services/audiopolicy/common/managerdefinitions/Android.mk | 4 | ||||
-rw-r--r-- | services/audiopolicy/common/managerdefinitions/include/ConfigParsingUtils.h | 4 |
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), }; |