Searched hist:d0250cf4f2abfbea64ed247230f08f5ae23979f0 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/soc/fsl/ |
H A D | fsl_asrc.c | diff d0250cf4f2abfbea64ed247230f08f5ae23979f0 Tue Jun 30 08:56:07 CDT 2020 Shengjiu Wang <shengjiu.wang@nxp.com> ASoC: fsl_asrc: Add an option to select internal ratio mode
The ASRC not only supports ideal ratio mode, but also supports internal ratio mode.
For internal rato mode, the rate of clock source should be divided with no remainder by sample rate, otherwise there is sound distortion.
Add function fsl_asrc_select_clk() to find proper clock source for internal ratio mode, if the clock source is available then internal ratio mode will be selected.
With change, the ideal ratio mode is not the only option for user.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Nicolin Chen <nicoleotsuka@gmail.com> Reviewed-by: Fabio Estevam <festevam@gmail.com> Link: https://lore.kernel.org/r/1593525367-23221-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
|