Repository navigation
Commit 18c17e1
committed
audio: eq_iir: fix silent output in pass-through mode
Commit 1061bcd ("audio: eq_iir: switch to source/sink processing
API") placed the memcpy_s() call of eq_iir_pass() inside an assert().
On Zephyr builds without CONFIG_ASSERT, assert() expands to an empty
statement and the argument is not evaluated, so no data is copied to
the sink. The sink is still committed, resulting in silence.
This is hit e.g. on Intel PTL with the HDA topology, where the EQ IIR
blob sets all channels to bypass and the pass-through function is used.
Playback to PCM0 completes without errors but no audio is heard.
Fix by evaluating memcpy_s() outside of assert().
Fixes: 1061bcd ("audio: eq_iir: switch to source/sink processing API")
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent fc9e50e commit 18c17e1
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
328 | 329 | | |
329 | 330 | | |
330 | 331 | | |
| |||
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
340 | | - | |
| 341 | + | |
| 342 | + | |
341 | 343 | | |
342 | 344 | | |
343 | 345 | | |
| |||
0 commit comments