summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaxminath Kasam <lkasam@codeaurora.org>2017-04-25 23:58:57 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-05-03 06:36:36 -0700
commit6e5b040ca4d273fecb026d7cc0f3eb8d9a912745 (patch)
treee7acc943fc8675ca9a1f043790127af67e1a9c06
parente3c33c9d53650719b2302ca34738978d9df49c49 (diff)
ASoC: msm: qdsp6v2: Fix voice call and record SSR test
Start voice call and sound recorder app, followed by ADSP SSR. After SSR, start again voice call and sound recorder app, and recording usecase fails. Reset recording flag in vocoder info when RESET_EVENTS callback handled. CRs-Fixed: 2037587 Change-Id: I232fef3b9ecddeeede559a4cbafa6abf86fc343d Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
-rw-r--r--sound/soc/msm/qdsp6v2/q6voice.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/msm/qdsp6v2/q6voice.c b/sound/soc/msm/qdsp6v2/q6voice.c
index d352133b7c32..01e31578f107 100644
--- a/sound/soc/msm/qdsp6v2/q6voice.c
+++ b/sound/soc/msm/qdsp6v2/q6voice.c
@@ -479,8 +479,10 @@ static void voc_set_error_state(uint16_t reset_proc)
for (i = 0; i < MAX_VOC_SESSIONS; i++) {
v = &common.voice[i];
- if (v != NULL)
+ if (v != NULL) {
v->voc_state = VOC_ERROR;
+ v->rec_info.recording = 0;
+ }
}
}