ASoC: fsl_micfil: rework quality setting
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 14 Apr 2022 16:22:44 +0000 (18:22 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:06:25 +0000 (12:06 +0100)
commitbea1d61d5892083551f92818e964801baabd95a9
tree4c8cd8cd247bb584992d46ca53bf5a0394c62016
parente8936f6925c1174242e643e0aa0646359c192fe2
ASoC: fsl_micfil: rework quality setting

For the quality setting the quality setting register values are directly
exposed to the kcontrol and thus to userspace. This is unfortunate
because the register settings contains invalid bit combinations marked
as "N/A". For userspace it doesn't make much sense to be able to set
these just to see that the driver responds with "Please make sure you
select a valid quality." in the kernel log.

Work around this by adding get/set functions for the quality setting.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20220414162249.3934543-17-s.hauer@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_micfil.c