Commit f9438a7
committed
subsys/audio: sof: use mem_slab for buffers
Zephyr's k_mem_pool does not allocate buffers that are cache line
and/or DMA transfers aligned. The manual cache line manipulations
has the potential to disrupt the k_mem_pool's own tracking
information, and thus causing exceptions in freeing the memory.
So the memory allocator is modified to use memory slab for
buffers, and it needs to be initialized.
Shrink the size of k_mem_pool as buffers are not being allocated
from there.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>1 parent ea4225d commit f9438a7
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| 294 | + | |
| 295 | + | |
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
| |||
0 commit comments