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 3, 2024
1 parent 3681e09 commit a3376f3
Show file tree
Hide file tree
Showing 3 changed files with 361 additions and 97 deletions.
Loading

0 comments on commit a3376f3

Please sign in to comment.