diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2016-05-13 18:45:17 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-30 18:14:59 +0300 |
commit | 20b7f7c5f13652d6db84b4a68d2473a0d767cac1 (patch) | |
tree | 978a6f9f86183911ccb16b6293730a7d52318ff2 /sound/soc/codecs/wm_adsp.h | |
parent | 97126ce8ce8d6f023b8ce3b71c3df882a2951605 (diff) | |
download | linux-20b7f7c5f13652d6db84b4a68d2473a0d767cac1.tar.xz |
ASoC: wm_adsp: Specifically propagate voice trigger event to caller
The DSP uses an IRQ to indicate data is available on the compressed
stream. For voice trigger use-cases the first such IRQ can be considered
an indication that the user has spoken the key phrase triggering the
firmware. Provide a means for the ADSP code to communicate back to the
calling driver whether an IRQ should be considered as trigger event or
not.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.h')
-rw-r--r-- | sound/soc/codecs/wm_adsp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h index feb61e2c4bb4..be3b5bcb7f17 100644 --- a/sound/soc/codecs/wm_adsp.h +++ b/sound/soc/codecs/wm_adsp.h @@ -19,6 +19,10 @@ #include "wmfw.h" +/* Return values for wm_adsp_compr_handle_irq */ +#define WM_ADSP_COMPR_OK 0 +#define WM_ADSP_COMPR_VOICE_TRIGGER 1 + struct wm_adsp_region { int type; unsigned int base; |