diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2020-05-21 13:54:03 +0800 |
---|---|---|
committer | Shengjiu Wang <shengjiu.wang@nxp.com> | 2020-05-21 18:41:36 +0800 |
commit | e218e9d460b093f5368aa38a1304f0fb47a20b67 (patch) | |
tree | f22bb87e40e83867f671fe1aa6469af212e5e1a1 /sound/soc/fsl | |
parent | f8c24c0980c537d34c17709eec12d10eca0cc716 (diff) |
MLK-24084-3: ASoC: fsl_easrc_m2m: reset in_filled_len on suspend
in_filled_len need to be reset on suspend, for suspend, every state
will go back to initilization state.
Fixes: 3e87108614d1 ("MLK-24044: ASoC: fsl_easrc_m2m: Fix output length not accurate")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/fsl_easrc_m2m.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_easrc_m2m.c b/sound/soc/fsl/fsl_easrc_m2m.c index 29afcf266681..86c6a46eba2b 100644 --- a/sound/soc/fsl/fsl_easrc_m2m.c +++ b/sound/soc/fsl/fsl_easrc_m2m.c @@ -957,6 +957,7 @@ static void fsl_easrc_m2m_suspend(struct fsl_easrc *easrc) } m2m->first_convert = 1; + m2m->in_filled_len = 0; fsl_easrc_stop_context(ctx); spin_unlock_irqrestore(&easrc->lock, lock_flags); } |