diff options
author | Mark Brown <broonie@kernel.org> | 2024-01-03 19:34:01 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-01-03 19:37:00 +0100 |
commit | 3150b70e944ead909260285dfb5707d0bedcf87b (patch) | |
tree | 5c82bab28559b0aaa80e2ace9225dada29c76365 /Kbuild | |
parent | ASoC: mediatek: mt8186: fix AUD_PAD_TOP register and offset (diff) | |
download | linux-3150b70e944ead909260285dfb5707d0bedcf87b.tar.xz linux-3150b70e944ead909260285dfb5707d0bedcf87b.zip |
ASoC: meson: g12a-toacodec: Validate written enum values
When writing to an enum we need to verify that the value written is valid
for the enumeration, the helper function snd_soc_item_enum_to_val() doesn't
do it since it needs to return an unsigned (and in any case we'd need to
check the return value).
Fixes: af2618a2eee8 ("ASoC: meson: g12a: add internal DAC glue driver")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240103-meson-enum-val-v1-1-424af7a8fb91@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions