Skip to content

Commit bc282b6

Browse files
Jyri Sarhalgirdwood
authored andcommitted
Audio: Selector: 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. The IPC3 implementation of selector uses the component interface directly and can not use the new module API. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 89b87ab commit bc282b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/audio/selector/selector.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ static int selector_init(struct processing_module *mod)
613613
return -EINVAL;
614614
}
615615

616-
cd = rzalloc(SOF_MEM_FLAG_USER, sizeof(*cd));
616+
cd = mod_zalloc(mod, sizeof(*cd));
617617
if (!cd)
618618
return -ENOMEM;
619619

@@ -733,7 +733,7 @@ static int selector_free(struct processing_module *mod)
733733

734734
comp_dbg(mod->dev, "selector_free()");
735735

736-
rfree(cd);
736+
mod_free(mod, cd);
737737

738738
return 0;
739739
}

0 commit comments

Comments
 (0)