Skip to content

Commit

Permalink
Tools: Testbench: Fix IPC4 PGA controls load
Browse files Browse the repository at this point in the history
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 <seppo.ingalsuo@linux.intel.com>
  • Loading branch information
singalsu authored and lgirdwood committed Oct 21, 2024
1 parent c32a5e2 commit 8ba3528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testbench/topology_ipc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8ba3528

Please sign in to comment.