mirror of https://github.com/thesofproject/sof.git
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:
parent
6e29114a5f
commit
b6cea3369f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue