mirror of https://github.com/thesofproject/sof.git
modules: Remove unused buffers
The code allocating/freeing in_buff and out_buff buffers, which were not used, was removed from the processing module adapter. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
This commit is contained in:
parent
dc19c871c7
commit
99f06ca681
|
@ -144,20 +144,7 @@ static int modules_init(struct processing_module *mod)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* Allocate module buffers */
|
||||
md->mpd.in_buff = rballoc(0, SOF_MEM_CAPS_RAM, src_cfg->ibs);
|
||||
if (!md->mpd.in_buff) {
|
||||
comp_err(dev, "modules_init(): Failed to alloc in_buff");
|
||||
return -ENOMEM;
|
||||
}
|
||||
md->mpd.in_buff_size = src_cfg->ibs;
|
||||
|
||||
md->mpd.out_buff = rballoc(0, SOF_MEM_CAPS_RAM, src_cfg->obs);
|
||||
if (!md->mpd.out_buff) {
|
||||
comp_err(dev, "modules_init(): Failed to alloc out_buff");
|
||||
rfree(md->mpd.in_buff);
|
||||
return -ENOMEM;
|
||||
}
|
||||
md->mpd.out_buff_size = src_cfg->obs;
|
||||
|
||||
/* Call module specific init function if exists. */
|
||||
|
@ -285,8 +272,6 @@ static int modules_free(struct processing_module *mod)
|
|||
ret = iadk_wrapper_free(mod->priv.module_adapter);
|
||||
}
|
||||
|
||||
rfree(md->mpd.in_buff);
|
||||
rfree(md->mpd.out_buff);
|
||||
|
||||
if (!md->llext || !llext_unload(&md->llext)) {
|
||||
/* Free module resources allocated in L2 memory. */
|
||||
|
|
Loading…
Reference in New Issue