ASoC: fsl_micfil: Add Hardware Voice Activity Detector support
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 23 Sep 2022 09:31:34 +0000 (17:31 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 17 Oct 2022 11:48:25 +0000 (12:48 +0100)
commit29dbfeecab85fc998d8c5c29473da33d272d0c85
tree96799f0999dcedf3ec5e8845ceb0da053d8b2d73
parent2a9ad0cc15d6b3f2475acdcd091bd0f6757ba7d8
ASoC: fsl_micfil: Add Hardware Voice Activity Detector support

The Hardware Voice Activity Detector (HWVAD) is a block
responsible for detect voice activity in a channel selected
by the user. It can be configured in Envelope-based or
Energy-based mode.

There are additional two interrupts for HWVAD, one is event
interrupt, another is error interrupt.

Enable hwvad in parallel with recording.
when voice activity detected, HWVAD will be disabled and
alsa control notification is triggerred.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1663925494-9941-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_micfil.c
sound/soc/fsl/fsl_micfil.h