]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rockchip: i2s: change bclk and lrck according to sample rates
authorCaesar Wang <wxt@rock-chips.com>
Fri, 6 Nov 2015 11:38:14 +0000 (19:38 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 10:10:24 +0000 (10:10 +0000)
commit0e70bb56c1cdaccc6047c0e74ad24892579c213e
tree8175fc61436a56646e3b1d4f52f77931e550043e
parent837e0eb1c9d194f0eb3cf87d97b2235de146c9fe
ASoC: rockchip: i2s: change bclk and lrck according to sample rates

This patch sets the dividers autonomously.

when i2s works on master mode, and sample rates changed. We need to change
bclk and lrck at the same time for cpu internal side.

As the input source clock to the module is MCLK_I2S,
and by the divider of the module, the clock generator generates
SCLK and LRCK to transmitter and receiver.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_i2s.c