Merge 426ea360d5c2286263b7445de71491195aede27b on remote branch
Change-Id: I4df1fd03f20eeef52fc681901988622cc9c2054e
diff --git a/st_hw_session_lsm.c b/st_hw_session_lsm.c
index d8ac8e4..4ffd9fd 100644
--- a/st_hw_session_lsm.c
+++ b/st_hw_session_lsm.c
@@ -3,6 +3,7 @@
* This file implements the hw session functionality specific to LSM HW
*
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -2060,6 +2061,7 @@
while (status && (retry_num < SOUND_TRIGGER_PCM_MAX_RETRY)) {
usleep(SOUND_TRIGGER_PCM_SLEEP_WAIT);
retry_num++;
+ pcm_stop(p_lsm_ses->pcm);
ALOGI("%s: pcm_start retrying..status %d errno %d, retry cnt %d",
__func__, status, errno, retry_num);
status = pcm_start(p_lsm_ses->pcm);