Skip to content

Commit

Permalink
Tools: Testbench: Fix ASRC component load
Browse files Browse the repository at this point in the history
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:	d9f9340
	("tplg_parser: split out testbench logic and partition
	features per file.")

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
  • Loading branch information
singalsu authored and lgirdwood committed Nov 10, 2023
1 parent 00e7bc0 commit 9eae757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testbench/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9eae757

Please sign in to comment.