Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workaround for audio_stream_avail_frames_aligned() problems
There are multiple problems with audio_stream_avail_frames_aligned() implementation: (1) default alignment initialization in audio_stream_init() does not work as frame format is set later, (2) if alignment was not explicitly initialized, audio_stream_avail_frames_aligned() returns wrong (higher) number of frames, (3) audio_stream_avail_frames_aligned() returns wrong result for formats with frame size not equal to power of 2, e.g. for streams with 3, 5 and 7 channels. For cross-core connection such problems result in weird bugs: corrupted memory due to wrong invalidate size. Signed-off-by: Serhiy Katsyuba <[email protected]>
- Loading branch information