From 6631424f66253c4bad94618fa078c97715a65fbc Mon Sep 17 00:00:00 2001 From: Ravi Kumar Alamanda Date: Thu, 2 Jul 2015 12:30:46 -0700 Subject: audiopolicy: Update flag enum tables for the new flags Without an entry in sOutputFlagNameToEnumTable or sInputFlagNameToEnumTable, a profile with specific output/input flag in the audio_policy.conf will not be detected by AudioPolicyManager. Bug: 19230391 Change-Id: I94bb3594e2eb8b57747b474a253da3551263c59a --- .../common/managerdefinitions/include/ConfigParsingUtils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services/audiopolicy/common') diff --git a/services/audiopolicy/common/managerdefinitions/include/ConfigParsingUtils.h b/services/audiopolicy/common/managerdefinitions/include/ConfigParsingUtils.h index a39006e..036ce20 100644 --- a/services/audiopolicy/common/managerdefinitions/include/ConfigParsingUtils.h +++ b/services/audiopolicy/common/managerdefinitions/include/ConfigParsingUtils.h @@ -156,11 +156,15 @@ const StringToEnum sOutputFlagNameToEnumTable[] = { STRING_TO_ENUM(AUDIO_OUTPUT_FLAG_NON_BLOCKING), STRING_TO_ENUM(AUDIO_OUTPUT_FLAG_HW_AV_SYNC), STRING_TO_ENUM(AUDIO_OUTPUT_FLAG_TTS), + STRING_TO_ENUM(AUDIO_OUTPUT_FLAG_RAW), + STRING_TO_ENUM(AUDIO_OUTPUT_FLAG_SYNC), }; const StringToEnum sInputFlagNameToEnumTable[] = { STRING_TO_ENUM(AUDIO_INPUT_FLAG_FAST), STRING_TO_ENUM(AUDIO_INPUT_FLAG_HW_HOTWORD), + STRING_TO_ENUM(AUDIO_INPUT_FLAG_RAW), + STRING_TO_ENUM(AUDIO_INPUT_FLAG_SYNC), }; const StringToEnum sFormatNameToEnumTable[] = { -- cgit v1.1