mirror of https://github.com/thesofproject/sof.git
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:
parent
3fe9e7d74e
commit
8e9df078e1
|
@ -789,7 +789,7 @@ static int test_keyword_prepare(struct comp_dev *dev)
|
|||
* according to host new format.
|
||||
*/
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue