This set of patches introduces the testbench for audio processing components in SOF. The testbench enables for functional/quality testing of the components. The testbench reads in audio samples from a file and write out the processed samples to the output file.
The src and include directories includes routines for topology parsing and setting up sof ipc, scheduler and processing pipelines. It also includes simpler implementations for SOF features such as tracing. It also includes the fileread/filewrite components that allow reading in or writing out samples from/to a file.
The test directory includes the testbench for the volume component. The volume testbench reads in input samples from a file ,schedules pipeline copy and copies the processed sample to the output file. The output file can be used to perform audio quality tests using matlab/octave. Testbench for other components such as src/eq will be added later.
Ranjani Sridharan (3): tune: add testbench common header and source files tune: new component for file IO tune: add testbench for volume comp
Makefile.am | 2 +- configure.ac | 5 +- tune/Makefile.am | 1 + tune/include/common_test.h | 63 ++++ tune/include/file.h | 71 ++++ tune/include/topology.h | 201 ++++++++++ tune/include/trace.h | 38 ++ tune/src/Makefile.am | 15 + tune/src/alloc.c | 74 ++++ tune/src/common_test.c | 212 +++++++++++ tune/src/file.c | 602 ++++++++++++++++++++++++++++++ tune/src/ipc.c | 81 ++++ tune/src/schedule.c | 98 +++++ tune/src/topology.c | 908 +++++++++++++++++++++++++++++++++++++++++++++ tune/src/trace.c | 150 ++++++++ tune/test/Makefile.am | 16 + tune/test/volume_test.c | 220 +++++++++++ 17 files changed, 2755 insertions(+), 2 deletions(-) create mode 100644 tune/Makefile.am create mode 100644 tune/include/common_test.h create mode 100644 tune/include/file.h create mode 100644 tune/include/topology.h create mode 100644 tune/include/trace.h create mode 100644 tune/src/Makefile.am create mode 100644 tune/src/alloc.c create mode 100644 tune/src/common_test.c create mode 100644 tune/src/file.c create mode 100644 tune/src/ipc.c create mode 100644 tune/src/schedule.c create mode 100644 tune/src/topology.c create mode 100644 tune/src/trace.c create mode 100644 tune/test/Makefile.am create mode 100644 tune/test/volume_test.c