Skip to content

Commit ace035b

Browse files
author
Jyri Sarha
committed
ASoC: sof: Add static_bytes to snd_sof_widget
Add static_bytes to snd_sof_widget. It is initialized with SOF_TKN_COMP_STATIC_BYTES_REQUIREMENT topology token's value, and it indicates the amount of heap memory the component requires for its initialization. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent f067268 commit ace035b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

sound/soc/sof/ipc4-topology.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ static const struct sof_topology_token comp_ext_tokens[] = {
164164
offsetof(struct snd_sof_widget, heap_bytes)},
165165
{SOF_TKN_COMP_STACK_BYTES_REQUIREMENT, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
166166
offsetof(struct snd_sof_widget, stack_bytes)},
167+
{SOF_TKN_COMP_STATIC_BYTES_REQUIREMENT, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
168+
offsetof(struct snd_sof_widget, static_bytes)},
167169
};
168170

169171
static const struct sof_topology_token gain_tokens[] = {

sound/soc/sof/sof-audio.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ struct snd_sof_widget {
463463
u32 domain_id; /* Module instance's userspace domain ID */
464464
u32 stack_bytes; /* Module instance's stack size requirement */
465465
u32 heap_bytes; /* Module instance's heap size requirement */
466+
u32 static_bytes; /* Module instance's static heap size requirement */
466467

467468
struct snd_soc_dapm_widget *widget;
468469
struct list_head list; /* list in sdev widget list */

0 commit comments

Comments
 (0)