st-hal: Skip second stage UBM sound model config
Sthal does not need to configure second stage session info
for the UBM sound model type. This change skips the configuration
sequence for these sound models.
Change-Id: Idf069467674739afd83706ae5e940a8e0af4d85f
diff --git a/sound_trigger_hw.c b/sound_trigger_hw.c
index e8c37a9..4c727e3 100644
--- a/sound_trigger_hw.c
+++ b/sound_trigger_hw.c
@@ -1734,8 +1734,8 @@
sizeof(SML_HeaderTypeV3) + (i * sizeof(SML_BigSoundModelTypeV3)));
if (big_sm->type != ST_SM_ID_SVA_GMM) {
- if ((big_sm->type == SML_ID_SVA_S_STAGE_UBM || big_sm->type == ST_SM_ID_SVA_VOP) &&
- !(recognition_mode & RECOGNITION_MODE_USER_IDENTIFICATION))
+ if (big_sm->type == SML_ID_SVA_S_STAGE_UBM || (big_sm->type == ST_SM_ID_SVA_VOP &&
+ !(recognition_mode & RECOGNITION_MODE_USER_IDENTIFICATION)))
continue;
ss_usecase = platform_get_ss_usecase(st_ses->vendor_uuid_info, big_sm->type);