]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb8a855398344e1beaf6dd842d02571719a3f3fe
tree4c8cd8cd247bb584992d46ca53bf5a0394c62016
parent3f25d91ba5cd1f2303f9770bd23ae57f149be8fa
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