]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_sai: Don't reset FIFO until TE/RE bit is unset
authorNicolin Chen <Guangyu.Chen@freescale.com>
Wed, 23 Jul 2014 11:23:39 +0000 (19:23 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 25 Jul 2014 17:52:35 +0000 (18:52 +0100)
commit38b9e2718907499d3d1162e0c4e38ad0310ba9c5
tree2f21074e058c08f5eb37b4993dfee8096927967a
parent5d9467e1b2b9ffa79c78c51cb5b2ae094dc789fc
ASoC: fsl_sai: Don't reset FIFO until TE/RE bit is unset

TE/RE bit of T/RCSR will remain set untill the current frame is physically
finished. The FIFO reset operation should wait this bit's totally cleared
rather than ignoring its status which might cause TE/RE disabling failed.

This patch adds delay and timeout to wait for its completion before FIFO
reset.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_sai.c