Merge "Fixing memory corruption bug in sound trigger V2_2"
diff --git a/soundtrigger/2.2/default/SoundTriggerHw.cpp b/soundtrigger/2.2/default/SoundTriggerHw.cpp
index 9d930ac..3cf72c8 100644
--- a/soundtrigger/2.2/default/SoundTriggerHw.cpp
+++ b/soundtrigger/2.2/default/SoundTriggerHw.cpp
@@ -380,8 +380,8 @@
"malloc failed for size %zu in convertSoundModelToHal PHRASE",
allocSize);
- const ISoundTriggerHw::PhraseSoundModel* keyPhraseModel =
- reinterpret_cast<const ISoundTriggerHw::PhraseSoundModel*>(soundModel);
+ const V2_0::ISoundTriggerHw::PhraseSoundModel* keyPhraseModel =
+ reinterpret_cast<const V2_0::ISoundTriggerHw::PhraseSoundModel*>(soundModel);
size_t i;
for (i = 0; i < keyPhraseModel->phrases.size() && i < SOUND_TRIGGER_MAX_PHRASES; i++) {