Skip to content

Commit 7867ec6

Browse files
Jyri Sarhaujfalusi
authored andcommitted
ASoC: sof: Add domain_id, heap_bytes and stack_bytes to snd_sof_widget
Add dp_domain_id, dp_heap_bytes and dp_stack_bytes to struct snd_sof_widget and fill the values from topology tuples with SOF_TKN_COMP_DOMAIN_ID, SOF_TKN_COMP_STACK_BYTES_REQUIREMENT and SOF_TKN_COMP_HEAP_BYTES_REQUIREMENT tokens. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 450c7bc commit 7867ec6

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

sound/soc/sof/ipc4-topology.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ static const struct sof_topology_token comp_ext_tokens[] = {
159159
offsetof(struct snd_sof_widget, core)},
160160
{SOF_TKN_COMP_SCHED_DOMAIN, SND_SOC_TPLG_TUPLE_TYPE_STRING, get_token_comp_domain,
161161
offsetof(struct snd_sof_widget, comp_domain)},
162+
{SOF_TKN_COMP_DOMAIN_ID, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
163+
offsetof(struct snd_sof_widget, dp_domain_id)},
164+
{SOF_TKN_COMP_HEAP_BYTES_REQUIREMENT, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
165+
offsetof(struct snd_sof_widget, dp_heap_bytes)},
166+
{SOF_TKN_COMP_STACK_BYTES_REQUIREMENT, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
167+
offsetof(struct snd_sof_widget, dp_stack_bytes)},
162168
};
163169

164170
static const struct sof_topology_token gain_tokens[] = {

sound/soc/sof/sof-audio.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,11 @@ struct snd_sof_widget {
459459
/* Scheduling domain (enum sof_comp_domain), unset, Low Latency, or Data Processing */
460460
u32 comp_domain;
461461

462+
/* The values below are added to mod_init pay load if comp_domain indicates DP component */
463+
u32 dp_domain_id; /* DP process userspace domain ID */
464+
u32 dp_stack_bytes; /* DP process stack size requirement in bytes */
465+
u32 dp_heap_bytes; /* DP process heap size requirement in bytes */
466+
462467
struct snd_soc_dapm_widget *widget;
463468
struct list_head list; /* list in sdev widget list */
464469
struct snd_sof_pipeline *spipe;

0 commit comments

Comments
 (0)