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>
This commit is contained in:
Laxminath Kasam 2017-04-25 23:58:57 +05:30 committed by Gerrit - the friendly Code Review server
parent e3c33c9d53
commit 6e5b040ca4

View file

@ -479,8 +479,10 @@ static void voc_set_error_state(uint16_t reset_proc)
for (i = 0; i < MAX_VOC_SESSIONS; i++) { for (i = 0; i < MAX_VOC_SESSIONS; i++) {
v = &common.voice[i]; v = &common.voice[i];
if (v != NULL) if (v != NULL) {
v->voc_state = VOC_ERROR; v->voc_state = VOC_ERROR;
v->rec_info.recording = 0;
}
} }
} }