MLK-16007-1: ASoC: fsl_asrc: Fix automatic mode configuration
authorMihai Serban <mihai.serban@nxp.com>
Wed, 26 Jul 2017 13:24:29 +0000 (16:24 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:10 +0000 (15:36 -0500)
commitd3fdfc56ab0db845945fa276fdf510031007f5a0
tree3a9957613bdcc32cde9bf153e69db5d89cae8662
parent0ae164c6d63cccb14cf7b6230de4c69284e323f2
MLK-16007-1: ASoC: fsl_asrc: Fix automatic mode configuration

Fix configuration for automatic selection of processing options and
internal measured ratio.

ASRC can automatically select its pre-processing and post-processing
options based on the frequencies it detects. To use this option the
two parameter registers ASR76K and ASR56K must be correctly configured
based on IPG clock frequency and the corresponding ATSx bits from the
ASRCTR register must be set.

When both the input sampling clock and the output sampling clock are
physically available, the rate conversion can work by configuring the
physical clocks. For this use case the ASRCTR:USRx and ASRCTR:IRDx
bits have to be configured as 1 and 0 respectively.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
sound/soc/fsl/fsl_asrc.c