summaryrefslogtreecommitdiffstats
path: root/include/hardware/sound_trigger.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-07-06 16:08:45 -0700
committerEric Laurent <elaurent@google.com>2014-07-07 10:15:45 -0700
commit30f3e6d348e5267320b40dbd8a67ffd77d179b4b (patch)
treefa07d0ea30546b5fddf4fd83927351dd6b1ef9df /include/hardware/sound_trigger.h
parent99e35eba21fe36364cdb6a09b35921027c367895 (diff)
downloadhardware_libhardware-30f3e6d348e5267320b40dbd8a67ffd77d179b4b.zip
hardware_libhardware-30f3e6d348e5267320b40dbd8a67ffd77d179b4b.tar.gz
hardware_libhardware-30f3e6d348e5267320b40dbd8a67ffd77d179b4b.tar.bz2
sound trigger: update HAL
New start_recognition() prototype with recognition configuration structure specifying: - List of keyphrases to listen to. - Recognition mode for each keyphrase - List of users and min confidence levels for each users New recognition event format with confidence level and user ID for each user. Bug: 12378680. Change-Id: I95e998c735321ceb5c27f477d894b574a6eca860
Diffstat (limited to 'include/hardware/sound_trigger.h')
-rw-r--r--include/hardware/sound_trigger.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/hardware/sound_trigger.h b/include/hardware/sound_trigger.h
index fc3ac47..2a8db87 100644
--- a/include/hardware/sound_trigger.h
+++ b/include/hardware/sound_trigger.h
@@ -98,12 +98,9 @@ struct sound_trigger_hw_device {
*/
int (*start_recognition)(const struct sound_trigger_hw_device *dev,
sound_model_handle_t sound_model_handle,
- audio_io_handle_t capture_handle,
- audio_devices_t capture_device,
+ const struct sound_trigger_recognition_config *config,
recognition_callback_t callback,
- void *cookie,
- unsigned int data_size,
- char *data);
+ void *cookie);
/* Stop recognition on a given model.
* The implementation does not have to call the callback when stopped via this method.