Commit 4c33deb
Jyri Sarha
audio: module_adapter: add vregion_type to mod_alloc_ctx
Add a vregion_type field to struct mod_alloc_ctx to track the current
vregion allocation mode for each module. Initialize it to
VREGION_MEM_TYPE_LIFETIME during module_adapter_mem_alloc() so that
all allocations during module creation and init use the lifetime
partition. Switch it to VREGION_MEM_TYPE_INTERIM at the start of
module_adapter_prepare() so that runtime allocations use the interim
partition.
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent 4779c33 commit 4c33deb
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
422 | 424 | | |
423 | 425 | | |
424 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
425 | 430 | | |
426 | 431 | | |
427 | 432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| 587 | + | |
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
| |||
0 commit comments