From 90c929d522013521d0f85ef4ca525447a46d9146 Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Fri, 4 Aug 2023 16:22:34 -0700 Subject: [PATCH] tplg_parser: mixer: Update the ipc4 builder Add support for parsing the mixer widget in IPC4 topologies. Signed-off-by: Ranjani Sridharan --- tools/tplg_parser/mixer.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tools/tplg_parser/mixer.c b/tools/tplg_parser/mixer.c index 64c6316d5..61538e87d 100644 --- a/tools/tplg_parser/mixer.c +++ b/tools/tplg_parser/mixer.c @@ -44,25 +44,15 @@ static int mixer_ipc3_build(struct tplg_context *ctx, void *_mixer) 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) { - /* TODO */ - return 0; + return tplg_parse_widget_audio_formats(ctx); } static const struct sof_topology_module_desc mixer_ipc[] = { {3, mixer_ipc3_tokens, ARRAY_SIZE(mixer_ipc3_tokens), 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,