[Sound-open-firmware] [PATCH v3 4/4] tune: Add README and a script to configure testbench parameters

Ranjani Sridharan ranjani.sridharan at linux.intel.com
Wed May 16 18:41:22 CEST 2018


Signed-off-by: Ranjani Sridharan <ranjani.sridharan at linux.intel.com>
---
 tune/README                   | 13 +++++++++++++
 tune/scripts/run_testbench.sh | 22 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 tune/README
 create mode 100755 tune/scripts/run_testbench.sh

diff --git a/tune/README b/tune/README
new file mode 100644
index 0000000..01006ed
--- /dev/null
+++ b/tune/README
@@ -0,0 +1,13 @@
+Running make in the root directory in sound-open-firmware-tools should build the tune directory and the testbench along with it.
+
+Please make sure to include the SOF install directory in the prefix while running configure if not using default directory for installation.
+
+Set up the command line arguments and invoke the testbench using the included "run_testbench.sh" script.
+
+Testbench supports both text and raw input file formats
+
+Known Limitations:
+
+1. Testbench set up to work with simple volume topologies only currently.
+
+2. Please keep same file format for input and output files
diff --git a/tune/scripts/run_testbench.sh b/tune/scripts/run_testbench.sh
new file mode 100755
index 0000000..0128193
--- /dev/null
+++ b/tune/scripts/run_testbench.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+#input file
+input_file="48000Hz_stereo_16bit.raw"
+
+#output_file
+output_file="out.raw"
+
+#input bit format
+bits_in="S16_LE"
+
+# topology file
+# please use only simple volume topologies for now
+topology_file="../topology/test/test-playback-ssp2-I2S-volume-s16le-s32le-48k-24576k-codec.tplg"
+
+#optional libraries to override
+libraries="vol=libsof_volume.so"
+
+# Use -d to enable debug prints
+
+# run testbench
+./test/testbench -i $input_file -o $output_file -b $bits_in -t $topology_file -a $libraries -d
-- 
2.17.0



More information about the Sound-open-firmware mailing list