OSDN Git Service

audio policy: add hw hotword flag for inputs
authorEric Laurent <elaurent@google.com>
Sat, 20 Sep 2014 02:04:57 +0000 (19:04 -0700)
committerEric Laurent <elaurent@google.com>
Sat, 20 Sep 2014 02:04:57 +0000 (19:04 -0700)
commit5dbe47139713292bf45bbf4f1a7af0835a5ff368
tree5d87cfe65614e4f10adabc0dad3e9f1a3ff64673
parentb0ed4e3e482cbdc2fa6c7853526597f4ae3f0972
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
services/audiopolicy/AudioPolicyManager.cpp
services/audiopolicy/AudioPolicyManager.h