From f1494c2f93bf50fc0c5a75c56d845ee6b02b0aa7 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Thu, 17 Oct 2024 19:28:24 +0300 Subject: [PATCH] Tools: Testbench: Fix IPC4 PGA controls load This mistake causes the module id and instance number number to be garbage, so the control can't be set up later in widget setup. The issue fixes the valgrind step fail with new proposed IPC4 version of scripts/host-testbench.sh. Signed-off-by: Seppo Ingalsuo --- tools/testbench/topology_ipc4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testbench/topology_ipc4.c b/tools/testbench/topology_ipc4.c index 757ccbaefd7a..c7bf9d5e1865 100644 --- a/tools/testbench/topology_ipc4.c +++ b/tools/testbench/topology_ipc4.c @@ -900,7 +900,7 @@ int tb_new_pga(struct testbench_prm *tp) /* skip kcontrols for now */ ret = tplg_create_controls(ctx, ctx->widget->num_kcontrols, tplg_ctl, - ctx->hdr->payload_size, &volume); + ctx->hdr->payload_size, comp_info); if (ret < 0) { fprintf(stderr, "error: loading controls\n"); goto out;