Ranjani Sridharan | 48c52ee | 2018-05-31 19:29:09 -0700 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | #build host library |
| 4 | sudo ./scripts/host-build-all.sh |
| 5 | |
| 6 | #input file |
| 7 | input_file="48000Hz_stereo_16bit.raw" |
| 8 | |
| 9 | #output_file |
| 10 | output_file="out.raw" |
| 11 | |
| 12 | #input bit format |
| 13 | bits_in="S16_LE" |
| 14 | |
| 15 | # topology file |
| 16 | # please use only simple volume topologies for now |
| 17 | topology_file="../sound-open-firmware-tools/topology/test/test-playback-ssp2-I2S-volume-s16le-s32le-48k-24576k-codec.tplg" |
| 18 | |
| 19 | #optional libraries to override |
| 20 | libraries="vol=libsof_volume.so" |
| 21 | |
| 22 | # Use -d to enable debug prints |
| 23 | |
| 24 | # run testbench |
| 25 | ./src/host/testbench -i $input_file -o $output_file -b $bits_in -t $topology_file -a $libraries -d |