Skip to content

Commit 93ea2f5

Browse files
singalsulgirdwood
authored andcommitted
Tools: Testbench: Fix non-specified output rate impact (MCPS)
If the -R <rate> is omitted the Xtensa version of sof-testbench4 reports the consumed MCPS as zero. The fix is to copy the output rate from input rate value (-r <rate>) if output rate is zero. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 9b483d4 commit 93ea2f5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/testbench/testbench.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,9 @@ int main(int argc, char **argv)
450450
if (!tp->channels_out)
451451
tp->channels_out = tp->channels_in;
452452

453+
if (!tp->fs_out)
454+
tp->fs_out = tp->fs_in;
455+
453456
/* check mandatory args */
454457
if (!tp->tplg_file) {
455458
fprintf(stderr, "topology file not specified, use -t file.tplg\n");

0 commit comments

Comments
 (0)