MLK-16007-2: ASoC: fsl_asrc: Enable automatic configuration for P2P
authorMihai Serban <mihai.serban@nxp.com>
Wed, 26 Jul 2017 08:17:09 +0000 (11:17 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:11 +0000 (15:36 -0500)
commitf9ec1601cc47c2d0dc4087547555b1ffd19eb40d
tree27383bdaaaa3f95797169ce98f45a99e4d2f79c6
parentd3fdfc56ab0db845945fa276fdf510031007f5a0
MLK-16007-2: ASoC: fsl_asrc: Enable automatic configuration for P2P

Use automatic selection of processing options and internal measured
ratio for P2P conversions.

The conversion done by ASRC depends on the IPG master clock frequency
that can have any value between 130MHz and 200MHz. The documentation
states that to support 10 channels with 192KHz sampling rate the
master clock frequency must be at least 160MHz.
When the master clock cannot be configured to faster frequencies the
ASRC can still convert the samples but it have to be configured to
automatically adjust the processing options and conversion ratio.

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