Make the framework treat getModelState recognition events the same
as regular recognition events
The application will differentiate between DSP and app triggered
regcognition events.
Test: manual test with STTA and NowPlaying app on p19
Bug: 119386757
Change-Id: Ia93aea9f56f8b9fcd31347169245f21724ac93c8
diff --git a/services/soundtrigger/SoundTriggerHwService.cpp b/services/soundtrigger/SoundTriggerHwService.cpp
index 944abcc..fe2ccf2 100644
--- a/services/soundtrigger/SoundTriggerHwService.cpp
+++ b/services/soundtrigger/SoundTriggerHwService.cpp
@@ -765,10 +765,7 @@
}
recognitionEvent->capture_session = model->mCaptureSession;
- // Don't reset the model state if this recognition event is a get-state response
- if (recognitionEvent->status != RECOGNITION_STATUS_GET_STATE_RESPONSE) {
- model->mState = Model::STATE_IDLE;
- }
+ model->mState = Model::STATE_IDLE;
clients.add(model->mModuleClient);
}
} break;