From 6e5b040ca4d273fecb026d7cc0f3eb8d9a912745 Mon Sep 17 00:00:00 2001 From: Laxminath Kasam Date: Tue, 25 Apr 2017 23:58:57 +0530 Subject: [PATCH] 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 --- sound/soc/msm/qdsp6v2/q6voice.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; + } } }