Skip to content

Commit

Permalink
Audio: aec: optimize acoustic echo cancellation processing
Browse files Browse the repository at this point in the history
This check-in proposal enhances the audio Echo Cancellation
AEC) implementation. The enhancements seek to enhance loop
designs and memory copy operations, reducing cycle
consumption.

When pointer arithmetic is substituted for array
indexing, it expedites performance and enhances
data processing. To maximize efficiency, data copy
verification is done outside of the loop, and
performance is increased by using pointer arithmetic
instead of inner loops.

Error management is included when the size of the
destination buffer is exceeded by the source data.
Before converting or copying data, the pointers
"ref," "src," and "dst" are verified to be inside
the valid range of "ref_buf," "src_buf," and
"dst_buf."

These changes improve the code's robustness and
efficiency by adding the necessary error checks.

Signed-off-by: shastry <[email protected]>
  • Loading branch information
ShriramShastry committed Mar 1, 2024
1 parent 3681e09 commit 05745bd
Show file tree
Hide file tree
Showing 2 changed files with 293 additions and 93 deletions.
Loading

0 comments on commit 05745bd

Please sign in to comment.