Skip to content

Commit fa0de06

Browse files
author
Jyri Sarha
committed
ASoC: SOF: ipc4-topology: Remove dp_ from all module memory attributes
Remove dp-prefix from all module instance's memory attributes and related data structures. The attributes are not anymore exclusively for Data Processing module instances, but generic for all module instances. However, the module init payload is still only for DP module instances. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 45e07ee commit fa0de06

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

sound/soc/sof/ipc4-topology.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ static const struct sof_topology_token comp_ext_tokens[] = {
159159
{SOF_TKN_COMP_SCHED_DOMAIN, SND_SOC_TPLG_TUPLE_TYPE_STRING, get_token_comp_domain,
160160
offsetof(struct snd_sof_widget, comp_domain)},
161161
{SOF_TKN_COMP_DOMAIN_ID, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
162-
offsetof(struct snd_sof_widget, dp_domain_id)},
162+
offsetof(struct snd_sof_widget, domain_id)},
163163
{SOF_TKN_COMP_HEAP_BYTES_REQUIREMENT, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
164-
offsetof(struct snd_sof_widget, dp_heap_bytes)},
164+
offsetof(struct snd_sof_widget, heap_bytes)},
165165
{SOF_TKN_COMP_STACK_BYTES_REQUIREMENT, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
166-
offsetof(struct snd_sof_widget, dp_stack_bytes)},
166+
offsetof(struct snd_sof_widget, stack_bytes)},
167167
};
168168

169169
static const struct sof_topology_token gain_tokens[] = {
@@ -3026,7 +3026,7 @@ static int sof_ipc4_widget_setup_msg_payload(struct snd_sof_dev *sdev,
30263026

30273027
/* Add object array objects after ext_init */
30283028

3029-
/* Add dp_memory_data if comp_domain indicates DP */
3029+
/* Add memory_data if comp_domain indicates DP */
30303030
if (swidget->comp_domain == SOF_COMP_DOMAIN_DP) {
30313031
hdr = (struct sof_ipc4_module_init_ext_object *)&payload[ext_pos];
30323032
hdr->header = SOF_IPC4_MOD_INIT_EXT_OBJ_LAST_MASK |
@@ -3035,9 +3035,9 @@ static int sof_ipc4_widget_setup_msg_payload(struct snd_sof_dev *sdev,
30353035
sizeof(u32)));
30363036
ext_pos += DIV_ROUND_UP(sizeof(*hdr), sizeof(u32));
30373037
dp_mem_data = (struct sof_ipc4_mod_init_ext_dp_memory_data *)&payload[ext_pos];
3038-
dp_mem_data->domain_id = swidget->dp_domain_id;
3039-
dp_mem_data->stack_bytes = swidget->dp_stack_bytes;
3040-
dp_mem_data->heap_bytes = swidget->dp_heap_bytes;
3038+
dp_mem_data->domain_id = swidget->domain_id;
3039+
dp_mem_data->stack_bytes = swidget->stack_bytes;
3040+
dp_mem_data->heap_bytes = swidget->heap_bytes;
30413041
ext_pos += DIV_ROUND_UP(sizeof(*dp_mem_data), sizeof(u32));
30423042
}
30433043

sound/soc/sof/sof-audio.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,10 @@ 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 */
462+
/* Module instance's memory configureation. */
463+
u32 domain_id; /* Module instance's userspace domain ID */
464+
u32 stack_bytes; /* Module instance's stack size requirement */
465+
u32 heap_bytes; /* Module instance's heap size requirement */
466466

467467
struct snd_soc_dapm_widget *widget;
468468
struct list_head list; /* list in sdev widget list */

0 commit comments

Comments
 (0)