tplg_parser: mixer: Update the ipc4 builder

Add support for parsing the mixer widget in IPC4 topologies.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2023-08-04 16:22:34 -07:00 committed by Liam Girdwood
parent d79ef35e70
commit 90c929d522
1 changed files with 2 additions and 12 deletions

View File

@ -44,25 +44,15 @@ static int mixer_ipc3_build(struct tplg_context *ctx, void *_mixer)
return 0; return 0;
} }
/* MIXER - IPC4 */
static const struct sof_topology_token mixer4_tokens[] = {
/* TODO */
};
static const struct sof_topology_token_group mixer_ipc4_tokens[] = {
{mixer4_tokens, ARRAY_SIZE(mixer4_tokens)},
};
static int mixer_ipc4_build(struct tplg_context *ctx, void *mixer) static int mixer_ipc4_build(struct tplg_context *ctx, void *mixer)
{ {
/* TODO */ return tplg_parse_widget_audio_formats(ctx);
return 0;
} }
static const struct sof_topology_module_desc mixer_ipc[] = { static const struct sof_topology_module_desc mixer_ipc[] = {
{3, mixer_ipc3_tokens, ARRAY_SIZE(mixer_ipc3_tokens), {3, mixer_ipc3_tokens, ARRAY_SIZE(mixer_ipc3_tokens),
mixer_ipc3_build, sizeof(struct sof_ipc_comp_mixer) + UUID_SIZE}, mixer_ipc3_build, sizeof(struct sof_ipc_comp_mixer) + UUID_SIZE},
{4, mixer_ipc4_tokens, ARRAY_SIZE(mixer_ipc4_tokens), mixer_ipc4_build}, {4, NULL, 0, mixer_ipc4_build},
}; };
int tplg_new_mixer(struct tplg_context *ctx, void *mixer, size_t mixer_size, int tplg_new_mixer(struct tplg_context *ctx, void *mixer, size_t mixer_size,