MLK-16839-1: ASoC: fsl_asrc: selec a proper clock source from the clock list
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 17 Nov 2017 08:29:46 +0000 (16:29 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:47:02 +0000 (15:47 -0500)
commit9cea0f38f15808ba0abf935b4e3f14a017ad7e0e
treed6aa6641abf27f0e8e7b40fd5e670a8a92ff5e41
parentc719dd59017f219ea04e69404829ae7889dedfc4
MLK-16839-1: ASoC: fsl_asrc: selec a proper clock source from the clock list

In internal ratio mode, when the clock rate can't be divided with no
remainder, The final convert ratio is not as expected, there is distortion
in output data.
So need to select a proper clock source for this mode, if can't find a good
clock source, then swith to ideal ratio mode.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
sound/soc/fsl/fsl_asrc.c
sound/soc/fsl/fsl_asrc.h