Skip to content

Commit 2838188

Browse files
Jyri Sarhalgirdwood
authored andcommitted
Audio: mixin_mixout: 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 008969b commit 2838188

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/audio/mixin_mixout/mixin_mixout.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <rtos/panic.h>
1414
#include <sof/ipc/msg.h>
1515
#include <sof/ipc/notification_pool.h>
16-
#include <rtos/alloc.h>
1716
#include <rtos/init.h>
1817
#include <sof/lib/uuid.h>
1918
#include <sof/list.h>
@@ -141,7 +140,7 @@ static int mixin_init(struct processing_module *mod)
141140

142141
comp_dbg(dev, "entry");
143142

144-
md = rzalloc(SOF_MEM_FLAG_USER, sizeof(*md));
143+
md = mod_zalloc(mod, sizeof(*md));
145144
if (!md)
146145
return -ENOMEM;
147146

@@ -168,7 +167,7 @@ static int mixout_init(struct processing_module *mod)
168167

169168
comp_dbg(dev, "entry");
170169

171-
mo_data = rzalloc(SOF_MEM_FLAG_USER, sizeof(*mo_data));
170+
mo_data = mod_zalloc(mod, sizeof(*mo_data));
172171
if (!mo_data)
173172
return -ENOMEM;
174173

@@ -184,14 +183,14 @@ static int mixin_free(struct processing_module *mod)
184183
{
185184
struct mixin_data *md = module_get_private_data(mod);
186185

187-
rfree(md);
186+
mod_free(mod, md);
188187

189188
return 0;
190189
}
191190

192191
static int mixout_free(struct processing_module *mod)
193192
{
194-
rfree(module_get_private_data(mod));
193+
mod_free(mod, module_get_private_data(mod));
195194

196195
return 0;
197196
}

0 commit comments

Comments
 (0)