MLK-14536: ASoC: wm8960: Fix playback in CPU DAI master mode
authorDaniel Baluta <daniel.baluta@nxp.com>
Thu, 20 Apr 2017 15:27:42 +0000 (18:27 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:02 +0000 (15:22 -0500)
commitef0ebcbce54423d866d2d914a5a20b9ce453f531
tree5bf7d6cd99fd2033cec17258db354c309ec5e578
parenteb388d6f56c75737c0a3854e3073eaccd0389726
MLK-14536: ASoC: wm8960: Fix playback in CPU DAI master mode

With the current rates for MCLK is not possible to derive bitclk
for all files in S20_3LE format and also for files with S24_LE sampled
at 48000Hz.

In order to fix this, we need to find a better MCLK value. We did this
in two steps:
1) Use params_physical_width to get rid of S20_3LE burden.
2) Brute force into all available rates which can pass fsl_sai_set_bclk
   algorithm.

Thus we found 36864000 to be the smallest acceptable rate for MCLK.

Reviewed-by: Mihai Serban <mihai.serban@nxp.com>
Suggested-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
arch/arm/boot/dts/imx6ul-14x14-evk.dts
sound/soc/fsl/imx-wm8960.c