ASoC: fsl_asrc: Add initialization finishing check in runtime resume
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 9 Sep 2022 03:44:58 +0000 (11:44 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 9 Sep 2022 21:27:08 +0000 (22:27 +0100)
commitd2de3f5ead84e230f4651cddf7658ab74ce1a70c
treefb9c660b1e74535b0a0bb60c3c74a45f7edf22ad
parent985f03ba6f4bc37bdacd2e78906e6b731e03ab32
ASoC: fsl_asrc: Add initialization finishing check in runtime resume

If the initialization is not finished, then filling input data to
the FIFO may fail. So it is better to add initialization finishing
check in the runtime resume for suspend & resume case.

And consider the case of three instances working in parallel,
increase the retry times to 50 for more initialization time.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Nicolin Chen <nicolinc@gmail.com>
Link: https://lore.kernel.org/r/1662695098-24602-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc.c