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 <[email protected]>
  • Loading branch information
singalsu committed Oct 18, 2024
1 parent c56ee08 commit 8590f58
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 @@ -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;
Expand Down

0 comments on commit 8590f58

Please sign in to comment.