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; + } } }