]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: Don't generate kcontrols without READ flags
authorStuart Henderson <stuarth@opensource.cirrus.com>
Wed, 2 Oct 2019 08:42:40 +0000 (09:42 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 2 Oct 2019 11:56:38 +0000 (12:56 +0100)
commit0b07ab5b6a521277e387cb74eb819af830149306
treef4943c4b8fccbb728506a6f01aae70116554f262
parent49279c4020a6b8d59b527f2a009e2441c0b1979a
ASoC: wm_adsp: Don't generate kcontrols without READ flags

User space always expects to be able to read ALSA controls, so ensure
no kcontrols are generated without an appropriate READ flag. In the case
of a read of such a control zeros will be returned.

Signed-off-by: Stuart Henderson <stuarth@opensource.cirrus.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20191002084240.21589-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c