diff options
author | Eric Laurent <elaurent@google.com> | 2014-09-19 19:04:57 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-09-19 19:04:57 -0700 |
commit | 5dbe47139713292bf45bbf4f1a7af0835a5ff368 (patch) | |
tree | 5d87cfe65614e4f10adabc0dad3e9f1a3ff64673 /services/audiopolicy/AudioPolicyManager.h | |
parent | b0ed4e3e482cbdc2fa6c7853526597f4ae3f0972 (diff) | |
download | frameworks_av-5dbe47139713292bf45bbf4f1a7af0835a5ff368.zip frameworks_av-5dbe47139713292bf45bbf4f1a7af0835a5ff368.tar.gz frameworks_av-5dbe47139713292bf45bbf4f1a7af0835a5ff368.tar.bz2 |
audio policy: add hw hotword flag for inputs
Audio input profiles can indicate flag AUDIO_INPUT_FLAG_HW_HOTWORD
meaning they allow capture from the same source as HW hotword
detection.
When a client requests capture with this flag, the policy will
try to find an input profile matching this request first and
fallback to a regular input if not found.
Bug: 17575019.
Change-Id: Ia463211597d7fa363527d776389f2257f0ced9a2
Diffstat (limited to 'services/audiopolicy/AudioPolicyManager.h')
-rw-r--r-- | services/audiopolicy/AudioPolicyManager.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/services/audiopolicy/AudioPolicyManager.h b/services/audiopolicy/AudioPolicyManager.h index da0d95d..0ea7b97 100644 --- a/services/audiopolicy/AudioPolicyManager.h +++ b/services/audiopolicy/AudioPolicyManager.h @@ -283,8 +283,8 @@ protected: Vector <audio_format_t> mFormats; // supported audio formats Vector < sp<AudioGain> > mGains; // gain controllers sp<HwModule> mModule; // audio HW module exposing this I/O stream - audio_output_flags_t mFlags; // attribute flags (e.g primary output, - // direct output...). For outputs only. + uint32_t mFlags; // attribute flags (e.g primary output, + // direct output...). }; class AudioPortConfig: public virtual RefBase @@ -387,7 +387,7 @@ protected: uint32_t *updatedSamplingRate, audio_format_t format, audio_channel_mask_t channelMask, - audio_output_flags_t flags) const; + uint32_t flags) const; void dump(int fd); void log(); @@ -754,7 +754,8 @@ protected: size_t size, uint32_t value); static bool stringToBool(const char *value); - static audio_output_flags_t parseFlagNames(char *name); + static uint32_t parseOutputFlagNames(char *name); + static uint32_t parseInputFlagNames(char *name); static audio_devices_t parseDeviceNames(char *name); void loadHwModule(cnode *root); void loadHwModules(cnode *root); |