]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rockchip: i2s: add a delay before i2s clear
authorSugar Zhang <sugar.zhang@rock-chips.com>
Fri, 9 Jun 2017 08:52:46 +0000 (16:52 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 13 Jun 2017 20:48:03 +0000 (21:48 +0100)
commit51d3a8e323507cae88e1e2dbf56593ab5c0dca1c
tree2cdd0cf276e9ab6f1af6d9cf2dbe660b046b1235
parent6a0fa58cdd92da9a8e6fa4e621cabd91974091b3
ASoC: rockchip: i2s: add a delay before i2s clear

in order to guarantee i2s lrck signal integrity, when i2s stop,
need at least one lrck cycle to ensure signal integrity.

the max delay time is when lrck is 8khz, the delay time is
125us(1/8khz), using udelay(150) with a 25us margin.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_i2s.c