From 0e2bd16961ffae44168fb174760c61c7b7cf1b2c 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 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 28f31355d3c5..572766ae2cee 100644 --- a/tools/testbench/topology_ipc4.c +++ b/tools/testbench/topology_ipc4.c @@ -905,7 +905,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;