kpb: get correct threshold with valid bits

We should get threshold with valid bits rather
than sample width.

Signed-off-by: Amery Song <chao.song@intel.com>
This commit is contained in:
Amery Song 2020-01-13 17:49:20 +08:00 committed by Liam Girdwood
parent 3fe9e7d74e
commit 8e9df078e1
1 changed files with 1 additions and 1 deletions

View File

@ -789,7 +789,7 @@ static int test_keyword_prepare(struct comp_dev *dev)
* according to host new format. * according to host new format.
*/ */
cd->config.activation_threshold = cd->config.activation_threshold =
test_keyword_get_threshold(dev, sample_width); test_keyword_get_threshold(dev, valid_bits);
} }
return comp_set_state(dev, COMP_TRIGGER_PREPARE); return comp_set_state(dev, COMP_TRIGGER_PREPARE);