diff options
author | Richard Fitzgerald <rf@opensource.wolfsonmicro.com> | 2016-11-09 17:14:18 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-11 15:57:56 +0000 |
commit | a23ebba845fee07cce00659c06844845b24da290 (patch) | |
tree | c307edc3e8c4740bf46661fd14058aee721cc0e8 /sound/soc/codecs/wmfw.h | |
parent | 8eb084d066baeca2b2911632bb4edddbc2b762c1 (diff) | |
download | linux-a23ebba845fee07cce00659c06844845b24da290.tar.bz2 |
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>
Diffstat (limited to 'sound/soc/codecs/wmfw.h')
-rw-r--r-- | sound/soc/codecs/wmfw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wmfw.h b/sound/soc/codecs/wmfw.h index 892fc7490f3b..ec78b9da020f 100644 --- a/sound/soc/codecs/wmfw.h +++ b/sound/soc/codecs/wmfw.h @@ -27,6 +27,7 @@ #define WMFW_CTL_FLAG_READABLE 0x0001 /* Non-ALSA coefficient types start at 0x1000 */ +#define WMFW_CTL_TYPE_ACKED 0x1000 /* acked control */ #define WMFW_CTL_TYPE_HOSTEVENT 0x1001 /* event control */ struct wmfw_header { |