Skip to content

Commit 365af8a

Browse files
Jyri Sarhalgirdwood
authored andcommitted
Audio: Template_comp: Memory, blob, and fast_get allocs to module API
Allocate all memory, blob handlers, and fast_get() buffers through module API mod_alloc() and friends. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent bf50f2b commit 365af8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/audio/template/template.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ __cold static int template_init(struct processing_module *mod)
4040

4141
comp_info(dev, "template_init()");
4242

43-
cd = rzalloc(SOF_MEM_FLAG_USER, sizeof(*cd));
43+
cd = mod_zalloc(mod, sizeof(*cd));
4444
if (!cd)
4545
return -ENOMEM;
4646

@@ -173,7 +173,7 @@ __cold static int template_free(struct processing_module *mod)
173173
assert_can_be_cold();
174174

175175
comp_dbg(mod->dev, "template_free()");
176-
rfree(cd);
176+
mod_free(mod, cd);
177177
return 0;
178178
}
179179

0 commit comments

Comments
 (0)