ASoC: fsl_micfil: Add fsl_micfil_use_verid function
authorChancel Liu <chancel.liu@nxp.com>
Wed, 2 Aug 2023 05:21:16 +0000 (13:21 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 2 Aug 2023 12:10:33 +0000 (13:10 +0100)
commit367365051b06e172c91172e3273eea72988ce8f6
treef0f2c3933e51f0c5e62061fc7a5aa91710743d65
parent51d765f79c8d8016df906afd05410f8bc14167ac
ASoC: fsl_micfil: Add fsl_micfil_use_verid function

fsl_micfil_use_verid() can help to parse the version info in VERID and
PARAM registers. Since the two registers are added only on i.MX93
platform, a member flag called use_verid is introduced to soc data
structure which indicates acquiring MICFIL version.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20230802052117.1293029-3-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_micfil.c
sound/soc/fsl/fsl_micfil.h