]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2024 01:02:39 +0000 (02:02 +0100)
commite64298aaf4ea1fc08a4c4b60fa9d3797b8d61d2c
tree84e6118249bf981f3e21e2718e136419f16560ea
parent32b75d49397f0b903b97a41165b925dad33dcc3e
ASoC: fsl_micfil: Add a flag to distinguish with different volume control types

[ Upstream commit da95e891dd5d5de6c5ebc010bd028a2e028de093 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/fsl_micfil.c