]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: fsl_micfil: Set channel range control
authorChancel Liu <chancel.liu@nxp.com>
Thu, 27 Nov 2025 02:26:52 +0000 (11:26 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 28 Nov 2025 11:47:49 +0000 (11:47 +0000)
commitef1a7e02fdb7526e8d7c75e744f1f5b2acd7100b
tree8bcac3f483a9ff5ef67e21b0268abe183ab4a772
parente04aab96b3776634ab37ddce6d50a431126edec3
ASoC: fsl_micfil: Set channel range control

The range control register can't directly adjust volume gain according
to specification. It's the dynamic range of the CIC filter. The range
value should meet some conditions otherwise the channel data is not
reliable. Add an array in soc data to store const value in formula
with which range with all quality on different platforms can be
calculated. If the value set to range control exceeds the max range
there'll be warning logs.

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