From f6cce347a73e3b3da9ff6698ead25b5a543ce47b Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Fri, 19 Sep 2014 17:45:18 -0700 Subject: [PATCH] audio: add HW hotword capture flag Bug: 17575019. Change-Id: I12c0a2e0200f3d839dfd74650724391e54ac3534 --- include/system/audio.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/system/audio.h b/include/system/audio.h index 0eb28b00e..9a25cfb5f 100644 --- a/include/system/audio.h +++ b/include/system/audio.h @@ -111,7 +111,8 @@ enum { AUDIO_FLAG_SECURE = 0x2, AUDIO_FLAG_SCO = 0x4, AUDIO_FLAG_BEACON = 0x8, - AUDIO_FLAG_HW_AV_SYNC = 0x10 + AUDIO_FLAG_HW_AV_SYNC = 0x10, + AUDIO_FLAG_HW_HOTWORD = 0x20, }; /* Do not change these values without updating their counterparts @@ -710,8 +711,9 @@ typedef enum { * attributes corresponding to the specified flags. */ typedef enum { - AUDIO_INPUT_FLAG_NONE = 0x0, // no attributes - AUDIO_INPUT_FLAG_FAST = 0x1, // prefer an input that supports "fast tracks" + AUDIO_INPUT_FLAG_NONE = 0x0, // no attributes + AUDIO_INPUT_FLAG_FAST = 0x1, // prefer an input that supports "fast tracks" + AUDIO_INPUT_FLAG_HW_HOTWORD = 0x2, // prefer an input that captures from hw hotword source } audio_input_flags_t; /* Additional information about compressed streams offloaded to