]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rockchip: correct the spdif clk
authorChris Zhong <zyw@rock-chips.com>
Mon, 18 Jul 2016 14:34:34 +0000 (22:34 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 18 Jul 2016 14:38:28 +0000 (15:38 +0100)
commitec24b0be8064490d6cefccd2b9165de665028844
tree4bf92522aeb261947955bd1b6ab2330132f9e1c5
parent84a05e6ec0a6d6e2e3357c679ab5d61c8899ff1f
ASoC: rockchip: correct the spdif clk

The spdif mclk should be 128 times of sample rate, and there is a
internal divider, the real rate of spdif mclk is mclk / (div + 1).
Hence, the original driver always get the good frequency for
48000/96000/44100/192000. But for 32000, the mclk is incorrect,
it should be 32000*128, but get 48000*128. Do not use the internal
divider here, just set all mclk to 128 * sample rate directly.

Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_spdif.c