detector: remove unnecessary preamble time verification

Remove unnecessary check of preamble time. Previously
it was allowing preamble time smaller than kpb buffering
time. There is no reason for such a constrain.

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

View File

@ -286,12 +286,6 @@ static int test_keyword_params(struct comp_dev *dev)
/* calculate the length of the preamble */
if (cd->config.preamble_time) {
if (cd->config.preamble_time > KPB_MAX_BUFF_TIME) {
trace_keyword_error("test_keyword_params() "
"error: kp length too long");
return -EINVAL;
}
cd->keyphrase_samples = cd->config.preamble_time *
(dev->params.rate / 1000);
} else {