Commit 1abed8c
committed
Tools: Add more robustness to check_volume_levels.m measure
This patch delays the check window if the gain settling seems
to be still happening in the beginning of level check window.
The settling is detected with differential of gain.
The window means acceptance criteria over time as gain in
decibels. E.g. x milliseconds to y milliseconds, measured
gain within a +/- b decibels. The average gain from the measure
window is computed and compare to required. Any fail will
fail the entire test.
The differential of measured gain shows if the gain is constant
or changing. The added code is shifting the measurement window
to later in time if the gain is not constant in in the beginning.
The delay in gain settling can be caused by random alsamixer
controls apply delay. Also a very long gain ramp makes the settling
to appear later.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>1 parent 2ff9c0b commit 1abed8c
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
198 | 220 | | |
199 | 221 | | |
200 | 222 | | |
| |||
0 commit comments