summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-07-30 08:58:39 -0700
committerEric Laurent <elaurent@google.com>2014-07-31 11:16:16 -0700
commit83cd830918b17fc50a8ca1cfba2d4d59bfbcf59b (patch)
tree46f86d0780c79b51464316fc23887adca753c5d4 /modules
parentfa9a4a3c68bd561acef780d5fbc7328cbca544eb (diff)
downloadhardware_libhardware-83cd830918b17fc50a8ca1cfba2d4d59bfbcf59b.zip
hardware_libhardware-83cd830918b17fc50a8ca1cfba2d4d59bfbcf59b.tar.gz
hardware_libhardware-83cd830918b17fc50a8ca1cfba2d4d59bfbcf59b.tar.bz2
sound_trigger HAL update
Bug: 12378680. Change-Id: I556cd316cbff3b8d88331319ca0ad65a09aae0f9
Diffstat (limited to 'modules')
-rw-r--r--modules/soundtrigger/sound_trigger_hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/soundtrigger/sound_trigger_hw.c b/modules/soundtrigger/sound_trigger_hw.c
index b78a0d1..e7f9baf 100644
--- a/modules/soundtrigger/sound_trigger_hw.c
+++ b/modules/soundtrigger/sound_trigger_hw.c
@@ -38,6 +38,7 @@ static const struct sound_trigger_properties hw_properties = {
false, // capture_transition
0, // max_buffer_ms
false, // concurrent_capture
+ false, // trigger_in_event
0 // power_consumption_mw
};
@@ -51,7 +52,6 @@ struct stub_sound_trigger_device {
pthread_t callback_thread;
pthread_mutex_t lock;
pthread_cond_t cond;
-
};
@@ -78,9 +78,9 @@ static void *callback_thread_loop(void *context)
event->common.status = RECOGNITION_STATUS_SUCCESS;
event->common.type = SOUND_MODEL_TYPE_KEYPHRASE;
event->common.model = stdev->model_handle;
- event->key_phrase_in_capture = false;
event->num_phrases = 1;
event->phrase_extras[0].recognition_modes = RECOGNITION_MODE_VOICE_TRIGGER;
+ event->phrase_extras[0].confidence_level = 100;
event->phrase_extras[0].num_levels = 1;
event->phrase_extras[0].levels[0].level = 100;
event->phrase_extras[0].levels[0].user_id = 0;