Repository navigation
detect_test: refine the activation threshold to fix trigger issue - #3116
Conversation
ClarexZhou
left a comment
There was a problem hiding this comment.
verified, issue #3112 can be fixed by this PR.
|
@keyonjie @lgirdwood Yes, the thresholds need to be scaled for their PCM format. But those multiplier values are not dividers, I'd call 0.05 as ACTIVATION_DEFAULT_THRESHOLD instead. Also since it's a float it could be converted this way. But it's a matter of taste what you feel is the best. |
|
Yes @singalsu the naming 'divider' here is somewhat, it should be something like coefficient or multiplier for calculating the threshold. But since it is fixing issue here I would prefer to keep the historic naming and leave the float converting to future refinement, for better bisect also. |
yes I can convert to use those macros to make it unified, though actually both method are using ints and not floats in the runtime code, float is already converted to int with today's code. |
Refine to use the consistent activation threshold for different formats, use a unified coefficient 0.05, and update the threshold at .params(). These refinement will fix the KWD trigger volume inconsistent for different sample format issue. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This is submitted to fix the issue #3112
Refine to use the consistent activation threshold for different formats,
use a unified divider 0.05, and update the threshold at .params() stage.
These refinement will fix the KWD trigger volume inconsistent for
different sample format issue.
Signed-off-by: Keyon Jie yang.jie@linux.intel.com