]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit268e146e1959e8f726e709e7045b98daf4db58b2
treee7aa512f574c37542459bca21978948a721ea122
parent3f785548603d074ce316036367f472481c9ecb0a
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