detector: set default preamble time to 0

With this patch default preamble is set to zero
meaning KWD is activated from start, no delay.

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
This commit is contained in:
Marcin Rajwa 2019-05-17 01:45:24 +02:00 committed by Tomasz Lauda
parent b6cea3369f
commit e174fbddb8
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@
#define ACTIVATION_DEFAULT_THRESHOLD_S16 \ #define ACTIVATION_DEFAULT_THRESHOLD_S16 \
((int16_t)((INT16_MAX) * (ACTIVATION_DEFAULT_THRESHOLD))) ((int16_t)((INT16_MAX) * (ACTIVATION_DEFAULT_THRESHOLD)))
/* number of samples to be treated as a full keyphrase */ /* default number of samples before detection is activated */
#define KEYPHRASE_DEFAULT_PREAMBLE_LENGTH (30 * 1024) #define KEYPHRASE_DEFAULT_PREAMBLE_LENGTH 0
struct comp_data { struct comp_data {
struct sof_detect_test_config config; struct sof_detect_test_config config;