ASoC: fsl_micfil: Add a flag to distinguish with different volume control types
authorChancel Liu <chancel.liu@nxp.com>
Thu, 17 Oct 2024 07:15:07 +0000 (16:15 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 18 Oct 2024 17:44:14 +0000 (18:44 +0100)
commitda95e891dd5d5de6c5ebc010bd028a2e028de093
tree6ec6e5e0821e4387ec4d5ad0d123450f82c714bd
parent9fc9ef05727ccb45fd881770f2aa5c3774b2e8e2
ASoC: fsl_micfil: Add a flag to distinguish with different volume control types

On i.MX8MM the register of volume control has positive and negative
values. It is different from other platforms like i.MX8MP and i.MX93
which only have positive values. Add a volume_sx flag to use SX_TLV
volume control for this kind of platform. Use common TLV volume control
for other platforms.

Fixes: cdfa92eb90f5 ("ASoC: fsl_micfil: Correct the number of steps on SX controls")
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://patch.msgid.link/20241017071507.2577786-1-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_micfil.c