Skip to content

Commit 05f27b0

Browse files
committed
drc: move .init() and .free() to DRAM
DRC's .init() and .free() functions aren't performance-critical, move them to DRAM for modular builds. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 20cacfe commit 05f27b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/audio/drc/drc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <ipc/control.h>
1919
#include <ipc/stream.h>
2020
#include <ipc/topology.h>
21+
#include <module/module/llext.h>
2122
#include <rtos/alloc.h>
2223
#include <rtos/init.h>
2324
#include <rtos/panic.h>
@@ -138,7 +139,7 @@ static int drc_setup(struct drc_comp_data *cd, uint16_t channels, uint32_t rate)
138139
* End of DRC setup code. Next the standard component methods.
139140
*/
140141

141-
static int drc_init(struct processing_module *mod)
142+
__cold static int drc_init(struct processing_module *mod)
142143
{
143144
struct module_data *md = &mod->priv;
144145
struct comp_dev *dev = mod->dev;
@@ -195,7 +196,7 @@ static int drc_init(struct processing_module *mod)
195196
return ret;
196197
}
197198

198-
static int drc_free(struct processing_module *mod)
199+
__cold static int drc_free(struct processing_module *mod)
199200
{
200201
struct drc_comp_data *cd = module_get_private_data(mod);
201202

@@ -407,7 +408,6 @@ SOF_MODULE_INIT(drc, sys_comp_module_drc_interface_init);
407408
/* modular: llext dynamic link */
408409

409410
#include <module/module/api_ver.h>
410-
#include <module/module/llext.h>
411411
#include <rimage/sof/user/manifest.h>
412412

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

0 commit comments

Comments
 (0)