Skip to content

Commit 193c39a

Browse files
author
Jyri Sarha
committed
ASoC: sof: Add lifetime_bytes and shared_bytes to snd_sof_widget
Add to lifetime_bytes and shared_bytes snd_sof_widget. They are with SOF_TKN_COMP_LIFETIME_BYTES_REQUIREMENT topology tokens and SOF_TKN_COMP_SHARED_BYTES_REQUIREMENT topology token's values. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 71296f1 commit 193c39a

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

sound/soc/sof/ipc4-topology.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ 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_LIFETIME_BYTES_REQUIREMENT, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
168+
offsetof(struct snd_sof_widget, lifetime_bytes)},
169+
{SOF_TKN_COMP_SHARED_BYTES_REQUIREMENT, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
170+
offsetof(struct snd_sof_widget, shared_bytes)},
167171
};
168172

169173
static const struct sof_topology_token gain_tokens[] = {

sound/soc/sof/sof-audio.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ 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 lifetime_bytes; /* Module instance's initialization memory requirement */
467+
u32 shared_bytes; /* Module instance's shared memory requirement */
466468

467469
struct snd_soc_dapm_widget *widget;
468470
struct list_head list; /* list in sdev widget list */

0 commit comments

Comments
 (0)