add start_recognition_exteded soundtrigger api

Bug: 146363190
Test: atest VtsHalSoundtriggerV2_3TargetTest
&& Assist GTS test suite and manual testing

Change-Id: I6a1ac196cb7f5ad1c0b60f0adfb67680bb18568b
This commit is contained in:
Nicholas Ambur 2020-01-02 13:00:29 -08:00
parent ae5e8ab33e
commit dc10826841

View file

@ -166,6 +166,18 @@ struct sound_trigger_hw_device {
*/
const struct sound_trigger_properties_header* (*get_properties_extended)
(const struct sound_trigger_hw_device *dev);
/* Start recognition on a given model. Only one recognition active at a time per model.
* Once recognition succeeds of fails, the callback is called.
* Recognition API includes extended config fields. The header is intended to be base to
* the proper config struct based on the header version.
* Only supported for device api versions SOUND_TRIGGER_DEVICE_API_VERSION_1_3 or above.
*/
int (*start_recognition_extended)(const struct sound_trigger_hw_device *dev,
sound_model_handle_t sound_model_handle,
const struct sound_trigger_recognition_config_header *header,
recognition_callback_t callback,
void *cookie);
};
typedef struct sound_trigger_hw_device sound_trigger_hw_device_t;