diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2024-08-22 13:57:25 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-08-22 14:42:40 +0200 |
commit | bff980d8d9ca537fd5f3c0e9a99876c1e3713e81 (patch) | |
tree | a00d73d309e7435fe382a37e1226916b139edfa0 /sound/soc/codecs/pcm512x-i2c.c | |
parent | ASoC: allow module autoloading for table board_ids (diff) | |
download | linux-bff980d8d9ca537fd5f3c0e9a99876c1e3713e81.tar.xz linux-bff980d8d9ca537fd5f3c0e9a99876c1e3713e81.zip |
ASoC: cs-amp-lib-test: Force test calibration blob entries to be valid
For a normal calibration blob the calTarget values must be non-zero and
unique, and the calTime values must be non-zero. Don't rely on
get_random_bytes() to be random enough to guarantee this. Force the
calTarget and calTime values to be valid while retaining randomness
in the values.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 177862317a98 ("ASoC: cs-amp-lib: Add KUnit test for calibration helpers")
Link: https://patch.msgid.link/20240822115725.259568-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/pcm512x-i2c.c')
0 files changed, 0 insertions, 0 deletions