UPSTREAM: 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)
committerGerrit Code Review <gerrit@rock-chips.com>
Wed, 30 Mar 2016 10:09:36 +0000 (18:09 +0800)
commita53d9dde3d15b0a687896e321e5eb56bd69d847e
tree45449c361ebd06addbeccb884c342254f3a6eac7
parent5210cee9ed8851bff79a7d1f6129a31fcc5cd5ce
UPSTREAM: 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.

Change-Id: I377f0f08656659787b980785fab0b69197b7b80b
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 2458c37779ddb91b4109949d86f5a5e193ba415b)
sound/soc/rockchip/rockchip_i2s.c