ASoC: fsl_asrc: replace the process_option table with function
authorS.j. Wang <shengjiu.wang@nxp.com>
Wed, 15 May 2019 06:42:22 +0000 (06:42 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 16 May 2019 12:37:01 +0000 (13:37 +0100)
commit4aecaa0a82b3142fb2f2862b3f25ecc96dc06d8c
tree944743d4298c82b3207150bf0252d8b9bac21be6
parentc8609f3870f7078fc7922eb816ed4908a9bd44f3
ASoC: fsl_asrc: replace the process_option table with function

When we want to support more sample rate, for example 12kHz/24kHz
we need update the process_option table, if we want to support more
sample rate next time, the table need to be updated again. which
is not flexible.

We got a function fsl_asrc_sel_proc to replace the table, which can
give the pre-processing and post-processing options according to
the sample rate.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc.c