On Fri, Jun 14, 2024 at 02:47:25PM +0200, Takashi Iwai wrote: > Although we have already a mechanism for sanity checks of input values > for control writes, it's not applied unless the kconfig > CONFIG_SND_CTL_INPUT_VALIDATION is set due to the performance reason. > Nevertheless, it still makes sense to apply the check for user > elements despite of its cost, as that's the only way to filter out the > invalid values; the user controls are handled solely in ALSA core > code, and there is no corresponding driver, after all. > > This patch enables the input value validation for user control > elements no matter whether CONFIG_SND_CTL_INPUT_VALIDATION is set or > not. The kselftest will be happier with this change, as the incorrect > values will be bailed out now with errors. Reviewed-by: Mark Brown <broonie@xxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature
- References:
- [PATCH 0/5] ALSA: some driver fixes for control input validations
- From: Takashi Iwai
- [PATCH 3/5] ALSA: control: Apply sanity check of input values for user elements
- From: Takashi Iwai
- [PATCH 0/5] ALSA: some driver fixes for control input validations
- Prev by Date: Re: [PATCH] ASoC: topology: Fix route memory corruption
- Next by Date: Re: [PATCH 4/5] kselftest/alsa: mixer-test: Skip write tests for volatile controls
- Previous by thread: Re: [PATCH 3/5] ALSA: control: Apply sanity check of input values for user elements
- Next by thread: [PATCH 4/5] kselftest/alsa: mixer-test: Skip write tests for volatile controls
- Index(es):