You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
audio: kpb: fix buffer_stream_invalidate size in micselect copy helpers
In all four kpb_micselect_copy16/32 variants (HiFi3 and generic), the
call to buffer_stream_invalidate(source, size) used the output byte
count (produced_bytes) as the invalidation size. When in_channels >
micsel_channels, the actual input span read by the copy loop is:
samples_per_chan * in_channels * sample_size
which is larger than the output span (size). Under-invalidating the
source buffer on CONFIG_INCOHERENT platforms can cause stale cache
reads.
Fix: compute samples_per_chan before the invalidate call and pass the
correct input span to buffer_stream_invalidate() in all four helpers.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
0 commit comments