Skip to content

Commit 801b87f

Browse files
singalsulgirdwood
authored andcommitted
Scripts: sof-testbench-helper: Separate input and output rate switches
This change does input rate changing with -r and to change both input and output rate, need to specify both -r and -R. With this change it's easy to test e.g. performance of 44100 to 48000 SRC with "-r 44100". Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 936f2ca commit 801b87f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/sof-testbench-helper.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ usage() {
1515
echo " -n <pipelines>, default 1,2"
1616
echo " -o <output wav>, default none"
1717
echo " -p <profiling result text>, use with -x, default none"
18-
echo " -r <rate>, default 48000"
18+
echo " -r <rate>, input rate, default 48000"
19+
echo " -R <rate>, output rate, default 48000"
1920
echo " -t <force topology>, default none, e.g. production/sof-hda-generic.tplg"
2021
echo " -v runs with valgrind, not available with -x"
2122
echo " -x runs testbench with xt-run simulator"
@@ -55,7 +56,7 @@ PROFILE=false
5556
TPLG0=
5657
VALGRIND=
5758

58-
while getopts "b:c:hi:km:n:o:p:r:t:vx" opt; do
59+
while getopts "b:c:hi:km:n:o:p:r:R:t:vx" opt; do
5960
case "${opt}" in
6061
b)
6162
BITS=${OPTARG}
@@ -89,6 +90,8 @@ while getopts "b:c:hi:km:n:o:p:r:t:vx" opt; do
8990
;;
9091
r)
9192
RATE_IN=${OPTARG}
93+
;;
94+
R)
9295
RATE_OUT=${OPTARG}
9396
;;
9497
t)

0 commit comments

Comments
 (0)