Commit a5b41ae
Jyri Sarha
audio: src: validate stream parameters at prepare time
Check that the source stream rate and channel count at prepare match
what was used to initialize the filter stages and delay lines. Since
these allocations now happen at init and persist across prepare/reset
cycles, a mismatch would cause incorrect processing or buffer overruns.
Also compare rates against the actual source stream rather than only
the IPC config, catching cases where the upstream pipeline delivers a
different rate than originally configured.
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent c18e622 commit a5b41ae
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
288 | 290 | | |
289 | 291 | | |
290 | | - | |
| 292 | + | |
291 | 293 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
296 | 303 | | |
297 | 304 | | |
298 | 305 | | |
| |||
0 commit comments