From 9eae757947d4c3a7cd127112d5d70ddcc514acda Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Fri, 3 Nov 2023 13:39:26 +0200 Subject: [PATCH] Tools: Testbench: Fix ASRC component load Before the fix the comp->core in ipc_comp_new() is garbage and the check for maximum core count fails. The pointer to struct asrc should be passed instead of address of pointer. Fixes: d9f9340e1a8ebc276fb67bf9e0a0c7bd08e4e52b ("tplg_parser: split out testbench logic and partition features per file.") Signed-off-by: Seppo Ingalsuo --- tools/testbench/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testbench/topology.c b/tools/testbench/topology.c index d943dc1a8793..95e1450df693 100644 --- a/tools/testbench/topology.c +++ b/tools/testbench/topology.c @@ -50,7 +50,7 @@ static int tb_register_asrc(struct testbench_prm *tp, struct tplg_context *ctx) asrc->source_rate = tp->fs_in; /* load asrc component */ - if (ipc_comp_new(sof->ipc, ipc_to_comp_new(&asrc)) < 0) { + if (ipc_comp_new(sof->ipc, ipc_to_comp_new(asrc)) < 0) { fprintf(stderr, "error: new asrc comp\n"); return -EINVAL; }