Audio: MDRC: Restructure MDRC for effective memory allocation · thesofproject/sof@f770cd2 · GitHub
Skip to content

Commit f770cd2

Browse files
Audio: MDRC: Restructure MDRC for effective memory allocation
This checkin consolidates the memory allocations for the crossover, emphasis, and deemphasis filter coefficients of the multiband DRC (MDRC) component into a single contiguous block. This change reduces the memory allocation overhead, improves data locality to enhance cache efficiency, and mitigates heap fragmentation. The refactoring of memory management adds robustness to the component by reducing the chances of memory leaks and simplifying the initialization and cleanup process. By streamlining memory management, the update lowers the possibility of memory leaks. Signed-off-by: Shriram Shastry <malladi.sastry@intel.com>
1 parent 2f3f877 commit f770cd2

2 files changed

Lines changed: 137 additions & 57 deletions

File tree

src/audio/multiband_drc/multiband_drc.c

Lines changed: 123 additions & 57 deletions

src/audio/multiband_drc/multiband_drc.h

Lines changed: 14 additions & 0 deletions

0 commit comments

Comments
 (0)