Lines Matching refs:mHwDevice
87 ALOGV("getProperties() mHwDevice %p", mHwDevice); in getProperties()
92 if (mHwDevice == NULL) { in getProperties()
97 ret = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
116 if (mHwDevice == NULL) { in doLoadSoundModel()
128 ret = mHwDevice->load_sound_model(mHwDevice, halSoundModel, soundModelCallback_, client.get(), in doLoadSoundModel()
173 if (mHwDevice == NULL) { in unloadSoundModel()
187 ret = mHwDevice->unload_sound_model(mHwDevice, client->getHalHandle()); in unloadSoundModel()
202 if (mHwDevice == NULL) { in startRecognition()
223 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
235 if (mHwDevice == NULL) { in stopRecognition()
249 ret = mHwDevice->stop_recognition(mHwDevice, client->getHalHandle()); in stopRecognition()
257 if (mHwDevice == NULL) { in stopAllRecognitions()
262 if (mHwDevice->common.version >= SOUND_TRIGGER_DEVICE_API_VERSION_1_1 && in stopAllRecognitions()
263 mHwDevice->stop_all_recognitions) { in stopAllRecognitions()
264 ret = mHwDevice->stop_all_recognitions(mHwDevice); in stopAllRecognitions()
272 SoundTriggerHw::SoundTriggerHw() : mModuleName("primary"), mHwDevice(NULL), mNextModelId(1) {} in SoundTriggerHw()
284 rc = sound_trigger_hw_device_open(mod, &mHwDevice); in onFirstRef()
288 mHwDevice = NULL; in onFirstRef()
291 if (mHwDevice->common.version < SOUND_TRIGGER_DEVICE_API_VERSION_1_0 || in onFirstRef()
292 mHwDevice->common.version > SOUND_TRIGGER_DEVICE_API_VERSION_CURRENT) { in onFirstRef()
293 ALOGE("wrong sound trigger hw device version %04x", mHwDevice->common.version); in onFirstRef()
294 sound_trigger_hw_device_close(mHwDevice); in onFirstRef()
295 mHwDevice = NULL; in onFirstRef()
299 ALOGI("onFirstRef() mModuleName %s mHwDevice %p", mModuleName, mHwDevice); in onFirstRef()
303 if (mHwDevice != NULL) { in ~SoundTriggerHw()
304 sound_trigger_hw_device_close(mHwDevice); in ~SoundTriggerHw()
695 if (mHwDevice == NULL) { in getModelState()
707 if (mHwDevice->common.version < SOUND_TRIGGER_DEVICE_API_VERSION_1_2) { in getModelState()
712 if (mHwDevice->get_model_state == NULL) { in getModelState()
717 return mHwDevice->get_model_state(mHwDevice, client->getHalHandle()); in getModelState()