ASoC: rockchip: i2s: fixup clk div
authorSugar Zhang <sugar.zhang@rock-chips.com>
Mon, 5 Jun 2017 02:20:29 +0000 (10:20 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 6 Jun 2017 09:53:12 +0000 (17:53 +0800)
commite5c89b56c95ef08a87d17c47f3798f3745090ad3
tree357fe43f19382f99cf52d53b15bc3f84aca12803
parentdc10d872c6688465565be3fd659ea75f667b4b9d
ASoC: rockchip: i2s: fixup clk div

we found mclk maybe not precise as required because of PLL,
but it still can be used and no side effect. for example, if we
require mclk 11289600, but get 11289598, it doesn't matter.
so using DIV_ROUND_CLOSEST to fix it.

Change-Id: If8453a7a08b319da81b07d572b02247bd7e7bd27
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
sound/soc/rockchip/rockchip_i2s.c