scripts: update host testbench script with src topology example

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2018-06-27 21:16:44 -07:00
parent bacada5c6b
commit 990046e140
1 changed files with 19 additions and 4 deletions

View File

@ -12,14 +12,29 @@ output_file="out.raw"
#input bit format
bits_in="S16_LE"
#input sample rate (this is an optional argument for SRC based pipelines)
#should be used with -r option
fs_in="48000"
#output sample rate (this is an optional argument for SRC based pipelines)
#should be used with -R option
fs_out="96000"
# topology file
# please use only simple volume topologies for now
topology_file="../sound-open-firmware-tools/topology/test/test-playback-ssp2-I2S-volume-s16le-s32le-48k-24576k-codec.tplg"
# please use simple volume/src topologies for now
topology_file="../soft.git/topology/test/test-playback-ssp2-I2S-volume-s16le-s32le-48k-24576k-codec.tplg"
#example src topology
#topology_file="../soft.git/topology/test/test-playback-ssp5-LEFT_J-src-s24le-s24le-48k-19200k-codec.tplg"
#optional libraries to override
libraries="vol=libsof_volume.so"
libraries="vol=libsof_volume.so,src=libsof_src.so"
# Use -d to enable debug prints
# run testbench
# run volume testbench
./src/host/testbench -i $input_file -o $output_file -b $bits_in -t $topology_file -a $libraries -d
# run src testbench
#./src/host/testbench -i $input_file -o $output_file -b $bits_in -t $topology_file -a $libraries -r $fs_in -R $fs_out -d