Skip to content

Commit ad0a18b

Browse files
committed
fix
1 parent ff779df commit ad0a18b

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/audio/module_adapter/library/userspace_proxy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ struct k_work_user *userspace_proxy_register_ipc_handler(struct processing_modul
6464
{
6565
struct userspace_context * const user_ctx = mod->user_ctx;
6666
if (user_ctx) {
67+
tr_dbg(&userspace_proxy_tr, "Set DP event %p for module %p",
68+
(void *)event, (void *)mod);
6769
user_ctx->dp_event = event;
6870
assert(user_ctx->work_item);
6971
return &user_ctx->work_item->work_item;

src/audio/module_adapter/module_adapter.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@ struct comp_dev *module_adapter_new_ext(const struct comp_driver *drv,
226226
if (!mod)
227227
return NULL;
228228

229+
module_set_private_data(mod, mod_priv);
230+
list_init(&mod->raw_data_buffers_list);
231+
#if CONFIG_USERSPACE
232+
mod->user_ctx = user_ctx;
233+
#endif /* CONFIG_USERSPACE */
234+
229235
struct comp_dev *dev = mod->dev;
230236

231237
#if CONFIG_ZEPHYR_DP_SCHEDULER
@@ -236,12 +242,6 @@ struct comp_dev *module_adapter_new_ext(const struct comp_driver *drv,
236242
}
237243
#endif /* CONFIG_ZEPHYR_DP_SCHEDULER */
238244

239-
module_set_private_data(mod, mod_priv);
240-
list_init(&mod->raw_data_buffers_list);
241-
#if CONFIG_USERSPACE
242-
mod->user_ctx = user_ctx;
243-
#endif /* CONFIG_USERSPACE */
244-
245245
dst = &mod->priv.cfg;
246246
/*
247247
* NOTE: dst->ext_data points to stack variable and contains

0 commit comments

Comments
 (0)