Lines Matching refs:halConfig
200 struct sound_trigger_recognition_config* halConfig; in startRecognition() local
216 halConfig = in startRecognition()
219 if (halConfig == NULL) { in startRecognition()
223 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
226 free(halConfig); in startRecognition()
431 struct sound_trigger_recognition_config* halConfig = in convertRecognitionConfigToHal() local
434 LOG_ALWAYS_FATAL_IF(halConfig == NULL, in convertRecognitionConfigToHal()
437 halConfig->capture_handle = (audio_io_handle_t)config->captureHandle; in convertRecognitionConfigToHal()
438 halConfig->capture_device = (audio_devices_t)config->captureDevice; in convertRecognitionConfigToHal()
439 halConfig->capture_requested = config->captureRequested; in convertRecognitionConfigToHal()
443 convertPhraseRecognitionExtraToHal(&halConfig->phrases[i], &config->phrases[i]); in convertRecognitionConfigToHal()
445 halConfig->num_phrases = i; in convertRecognitionConfigToHal()
447 halConfig->data_offset = sizeof(struct sound_trigger_recognition_config); in convertRecognitionConfigToHal()
448 halConfig->data_size = config->data.size(); in convertRecognitionConfigToHal()
449 uint8_t* dst = reinterpret_cast<uint8_t*>(halConfig) + halConfig->data_offset; in convertRecognitionConfigToHal()
452 return halConfig; in convertRecognitionConfigToHal()