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 authored and lgirdwood committed Nov 27, 2024
1 parent bb30a38 commit 40ed1e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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,7 +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.
*/

static int drc_init(struct processing_module *mod)
__cold static int drc_init(struct processing_module *mod)
{
struct module_data *md = &mod->priv;
struct comp_dev *dev = mod->dev;
Expand Down Expand Up @@ -195,7 +196,7 @@ static int drc_init(struct processing_module *mod)
return ret;
}

static int drc_free(struct processing_module *mod)
__cold static int drc_free(struct processing_module *mod)
{
struct drc_comp_data *cd = module_get_private_data(mod);

Expand Down Expand Up @@ -407,7 +408,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 40ed1e2

Please sign in to comment.