-
Notifications
You must be signed in to change notification settings - Fork 350
[DRAFT] userspace LL/audio test PR #10558
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
base: main
Are you sure you want to change the base?
Changes from all commits
9a0b8c4
83dfe00
ba22d89
246fa76
e76704c
6431871
e998fa0
20620b7
c0227d0
4c7b36e
878a39f
ade85d3
1a9358a
82d6677
a212755
27a4d95
8b0fe8b
92907cc
7616743
1e93105
5b4411c
e75247f
f40986a
63e5518
0287036
a32d6b8
5b41923
2049d7c
dcbac46
5ffe6a9
8b010f8
7f22668
759b058
4b76f90
b5ad4b8
e4ced86
6d616b9
a5e4df0
1f1ee4e
bd095b3
cb3eaef
947c647
dafc765
b8345da
4bcd158
ed20b95
b7d0c0c
2d0f777
71fbedd
e8fd631
945b06b
2e65960
48d8ea9
7317b18
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 |
|---|---|---|
|
|
@@ -699,3 +699,11 @@ void comp_update_ibs_obs_cpc(struct comp_dev *dev) | |
| #endif | ||
| } | ||
|
|
||
| #ifdef CONFIG_SOF_USERSPACE_LL | ||
| void comp_grant_access_to_thread(const struct comp_dev *dev, struct k_thread *th) | ||
| { | ||
| assert(dev->list_mutex); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. description a bit confusing - this is only granting access to a mutex. Also |
||
| tr_dbg(&ipc_tr, "grant access to mutex %p for thread %p", dev->list_mutex, th); | ||
| k_thread_access_grant(th, dev->list_mutex); | ||
| } | ||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,10 +50,11 @@ struct host_data { | |
| /* local DMA config */ | ||
| #if CONFIG_ZEPHYR_NATIVE_DRIVERS | ||
| struct sof_dma *dma; | ||
| int chan_index; | ||
| #else | ||
| struct dma *dma; | ||
| #endif | ||
| struct dma_chan_data *chan; | ||
| #endif | ||
| struct dma_sg_config config; | ||
| #ifdef __ZEPHYR__ | ||
| struct dma_config z_config; | ||
|
|
@@ -112,6 +113,7 @@ struct host_data { | |
| uint64_t next_sync; | ||
| uint64_t period_in_cycles; | ||
| #endif | ||
| struct k_heap *heap; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wasn't this already referenced in the previous commit? |
||
| }; | ||
|
|
||
| int host_common_new(struct host_data *hd, struct comp_dev *dev, | ||
|
|
||
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.
the commit, that is mentioned in the commit message, only moved buffer context objects to particular heaps. This commit moves actual data buffers to them too, which is different and (arguably) more risky