Lines Matching refs:mHwDevice

69     ALOGV("getProperties() mHwDevice %p", mHwDevice);  in getProperties()
74 if (mHwDevice == NULL) { in getProperties()
79 ret = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
98 if (mHwDevice == NULL) { in doLoadSoundModel()
110 ret = mHwDevice->load_sound_model(mHwDevice, halSoundModel, soundModelCallback, client.get(), in doLoadSoundModel()
152 if (mHwDevice == NULL) { in unloadSoundModel()
166 ret = mHwDevice->unload_sound_model(mHwDevice, client->getHalHandle()); in unloadSoundModel()
180 if (mHwDevice == NULL) { in startRecognition()
200 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
212 if (mHwDevice == NULL) { in stopRecognition()
226 ret = mHwDevice->stop_recognition(mHwDevice, client->getHalHandle()); in stopRecognition()
234 if (mHwDevice == NULL) { in stopAllRecognitions()
239 if (mHwDevice->common.version >= SOUND_TRIGGER_DEVICE_API_VERSION_1_1 && in stopAllRecognitions()
240 mHwDevice->stop_all_recognitions) { in stopAllRecognitions()
241 ret = mHwDevice->stop_all_recognitions(mHwDevice); in stopAllRecognitions()
250 : mModuleName("primary"), mHwDevice(NULL), mNextModelId(1) {} in SoundTriggerHalImpl()
262 rc = sound_trigger_hw_device_open(mod, &mHwDevice); in onFirstRef()
266 mHwDevice = NULL; in onFirstRef()
269 if (mHwDevice->common.version < SOUND_TRIGGER_DEVICE_API_VERSION_1_0 || in onFirstRef()
270 mHwDevice->common.version > SOUND_TRIGGER_DEVICE_API_VERSION_CURRENT) { in onFirstRef()
271 ALOGE("wrong sound trigger hw device version %04x", mHwDevice->common.version); in onFirstRef()
272 sound_trigger_hw_device_close(mHwDevice); in onFirstRef()
273 mHwDevice = NULL; in onFirstRef()
277 ALOGI("onFirstRef() mModuleName %s mHwDevice %p", mModuleName, mHwDevice); in onFirstRef()
281 if (mHwDevice != NULL) { in ~SoundTriggerHalImpl()
282 sound_trigger_hw_device_close(mHwDevice); in ~SoundTriggerHalImpl()