ASoC: wm_adsp: Support acknowledged controls
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Wed, 9 Nov 2016 17:14:18 +0000 (17:14 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 11 Nov 2016 15:57:56 +0000 (15:57 +0000)
commita23ebba845fee07cce00659c06844845b24da290
treec307edc3e8c4740bf46661fd14058aee721cc0e8
parent8eb084d066baeca2b2911632bb4edddbc2b762c1
ASoC: wm_adsp: Support acknowledged controls

This patch handles publishing acknowledged controls through ALSA.
These controls allow user-side to send events to the firmware and
wait for the firmware to acknowledge it.

Note that although acked controls only operate in the direction
host->firmware, and therefore they are write-only as seen from user-
side code, we have to make them readable to account for all the code
out there that assumes that ALSA controls are always readable (amixer
for example.)

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wmfw.h