]> 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)
commitdda84192600dab167a9a58651182f0e4f6aa8530
treee7aa512f574c37542459bca21978948a721ea122
parent53e95a3e8f70fc53389576b5df5a44310c3381af
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