Skip to content

Commit fa0a766

Browse files
committed
cleanup
Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
1 parent f268501 commit fa0a766

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/audio/module_adapter/library/userspace_proxy.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ struct user_worker {
5757
struct k_event event;
5858
};
5959

60-
/*
61-
APP_USER_BSS static struct user_work_item worker_data;
62-
*/
63-
6460
static struct user_worker worker;
6561

6662
static int user_worker_create()
@@ -87,12 +83,6 @@ static int user_worker_create()
8783

8884
worker.reference_count++;
8985
return 0;
90-
#if 0
91-
error:
92-
/* TODO: Moze wspolna funckja free? */
93-
user_stack_free(worker.stack_ptr);
94-
return -ENOMEM;
95-
#endif
9686
}
9787

9888
static void user_worker_free()
@@ -118,7 +108,6 @@ static int user_work_item_init(struct userspace_context *context, struct k_heap
118108
if (ret)
119109
return ret;
120110

121-
/* TODO: Must be coherent! */
122111
work_item = sof_heap_alloc(user_heap, SOF_MEM_FLAG_COHERENT, sizeof(*work_item), 0);
123112
if (!work_item)
124113
return -ENOMEM;
@@ -138,24 +127,6 @@ static void user_work_item_free(struct userspace_context *context, struct k_heap
138127
user_worker_free();
139128
}
140129

141-
#if 0
142-
/* Init module memory domain. */
143-
ret = k_mem_domain_add_thread(context->comp_dom, worker.thread_id);
144-
if (ret < 0) {
145-
tr_err(&userspace_proxy_tr, "failed to add memory domain: error: %d", ret);
146-
goto err_init;
147-
}
148-
if (!worker.reference_count) {
149-
150-
151-
/* Submit work item to the queue */
152-
ret = k_work_user_submit_to_queue(&worker.work_queue,
153-
&worker_data.work_item);
154-
if (ret < 0)
155-
goto err_init;
156-
}
157-
#endif
158-
159130
static inline struct module_params *user_work_get_params(struct userspace_context *context)
160131
{
161132
return &context->work_item->params;

0 commit comments

Comments
 (0)