-
Notifications
You must be signed in to change notification settings - Fork 350
pipeline: allocate on specific heap #10539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7d0dfe5
1833b77
7260fc4
c51bfa6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |||||
| #include <sof/ipc/msg.h> | ||||||
| #include <rtos/interrupt.h> | ||||||
| #include <rtos/symbol.h> | ||||||
| #include <rtos/alloc.h> | ||||||
| #include <sof/lib/mm_heap.h> | ||||||
| #include <sof/lib/uuid.h> | ||||||
| #include <sof/compiler_attributes.h> | ||||||
|
|
@@ -108,8 +109,8 @@ void pipeline_posn_init(struct sof *sof) | |||||
| } | ||||||
|
|
||||||
| /* create new pipeline - returns pipeline id or negative error */ | ||||||
| struct pipeline *pipeline_new(uint32_t pipeline_id, uint32_t priority, uint32_t comp_id, | ||||||
| struct create_pipeline_params *pparams) | ||||||
| struct pipeline *pipeline_new(struct k_heap *heap, uint32_t pipeline_id, uint32_t priority, | ||||||
| uint32_t comp_id, struct create_pipeline_params *pparams) | ||||||
| { | ||||||
| struct sof_ipc_stream_posn posn; | ||||||
| struct pipeline *p; | ||||||
|
|
@@ -122,13 +123,16 @@ struct pipeline *pipeline_new(uint32_t pipeline_id, uint32_t priority, uint32_t | |||||
| heap_trace_all(0); | ||||||
|
|
||||||
| /* allocate new pipeline */ | ||||||
| p = rzalloc(SOF_MEM_FLAG_USER, sizeof(*p)); | ||||||
| p = sof_heap_alloc(heap, SOF_MEM_FLAG_USER, sizeof(*p), 0); | ||||||
|
||||||
| p = sof_heap_alloc(heap, SOF_MEM_FLAG_USER, sizeof(*p), 0); | |
| p = sof_heap_alloc(heap, SOF_MEM_FLAG_USER, sizeof(*p), __alignof__(*p)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fwiw, I will be changing this to pass in a vregion soon.