Skip to content

Commit

Permalink
drc: move .init() and .free() to DRAM
Browse files Browse the repository at this point in the history
DRC's .init() and .free() functions aren't performance-critical,
move them to DRAM for modular builds.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh committed Nov 22, 2024
1 parent 696f8bc commit c9b3b6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/audio/drc/drc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <ipc/control.h>
#include <ipc/stream.h>
#include <ipc/topology.h>
#include <module/module/llext.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <rtos/panic.h>
Expand Down Expand Up @@ -138,6 +139,7 @@ static int drc_setup(struct drc_comp_data *cd, uint16_t channels, uint32_t rate)
* End of DRC setup code. Next the standard component methods.
*/

__sof_llext_dram_text(CONFIG_COMP_DRC_MODULE)
static int drc_init(struct processing_module *mod)
{
struct module_data *md = &mod->priv;
Expand Down Expand Up @@ -195,6 +197,7 @@ static int drc_init(struct processing_module *mod)
return ret;
}

__sof_llext_dram_text(CONFIG_COMP_DRC_MODULE)
static int drc_free(struct processing_module *mod)
{
struct drc_comp_data *cd = module_get_private_data(mod);
Expand Down Expand Up @@ -407,7 +410,6 @@ SOF_MODULE_INIT(drc, sys_comp_module_drc_interface_init);
/* modular: llext dynamic link */

#include <module/module/api_ver.h>
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_DRC 0xda, 0xe4, 0x6e, 0xb3, 0x6f, 0x00, 0xf9, 0x47, \
Expand Down

0 comments on commit c9b3b6a

Please sign in to comment.