Commit 9bd3ca9
committed
audio: mux: fix input buffer consumption for mixed channel counts
Fix per-source consumed byte accounting in mux_process().
When MUX inputs use different channel counts, using the first
input buffer frame size for all consumed accounting advances
other source buffers incorrectly. This causes duplicated
samples, incorrect output frequency, and capture duration
issues.
Compute consumed bytes per input buffer using each source
stream's own frame size.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent c64e373 commit 9bd3ca9
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
| |||
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
344 | | - | |
345 | 343 | | |
346 | 344 | | |
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
350 | 348 | | |
351 | | - | |
| 349 | + | |
352 | 350 | | |
353 | 351 | | |
354 | 352 | | |
355 | | - | |
| 353 | + | |
| 354 | + | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
| |||
0 commit comments