ASoC: sigmadsp: Disable cache mechanism for readbacks
authorNiklas Carlsson <niklasc@axis.com>
Mon, 19 Apr 2021 14:49:01 +0000 (16:49 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 19 Apr 2021 15:51:52 +0000 (16:51 +0100)
commit11a9b987611f17e6a95e9bb34c1f5f9aa0b6ae25
treee7aa512f574c37542459bca21978948a721ea122
parent87143bfdb9f7ddc14b129fda610e114d29077596
ASoC: sigmadsp: Disable cache mechanism for readbacks

The ALSA control readback functionality only works for non-volatile
controls, i.e. control values that does not change on their own without
driver interaction.

This doesn't work for readbacks since the DSP firmware updates the
control value. Disable the cache mechanism in the driver if the control
name matches the prefix used for readbacks to ensure that the control
value is valid.

Signed-off-by: Niklas Carlsson <niklasc@axis.com>
Link: https://lore.kernel.org/r/20210419144901.9441-1-Niklas.Carlsson@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sigmadsp.c