sof/tools/tune/common
Seppo Ingalsuo 3d1275dc0d Tools: Tune: Multiband-DRC: Add support for tplg2 config files generation
This patch re-structures function example_multiband_drc() to
let it generate multiple differentiated configurations. The
computation of blob is moved to new function export_multiband_drc().
The script now generates default (same as before) and pass-through
blobs.

Inside the function the paths for tplg1 and tplg2 are updated as
well as locations of data blobs for sof-ctl. The run of export
function creates blobs for both tplg1 and tplg2 with SOF IPC
versions three and four.

check_create_dir() common function is added to avoid error with
missing directory for export and for warning message about
already existing directory that just using mkdir() would do.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2023-08-28 09:42:36 +01:00
..
README.md tools: tune: Add tools to generate bytes control 2020-03-26 16:49:37 +00:00
alsactl_write.m Tools: Tune: Multiband-DRC: Add support for tplg2 config files generation 2023-08-28 09:42:36 +01:00
blob_write.m Tools: Tune: Multiband-DRC: Add support for tplg2 config files generation 2023-08-28 09:42:36 +01:00
check_create_dir.m Tools: Tune: Multiband-DRC: Add support for tplg2 config files generation 2023-08-28 09:42:36 +01:00
get_abi.m Tools: Tune: DRC: Export configurations for topology2 2023-05-29 10:12:16 +03:00
tplg2_write.m Tools: Tune: DRC: Export configurations for topology2 2023-05-29 10:12:16 +03:00
tplg_write.m tools: tune: Add tools to generate bytes control 2020-03-26 16:49:37 +00:00

README.md

Common Scripts to Generate Byte Control Files

The tools need GNU Octave version 4.0.0 or later with octave-signal package.

alsactl_write(fn, blob8)

Converts blob8 to a CSV text file. The output can be used to configure an audio component using sof-ctl. Example:

sof-ctl -n 22 -s output.csv # Apply config to control numid=22

blob_write(fn, blob8)

Converts blob8 to a binary file. The output can be used to configure an audio component using sof-ctl. Example:

sof-ctl -n 22 -b set output.bin # Apply config to control numid=22

tplg_write(fn, blob8, name, comment)

Converts blob8 to a topology config file. The control bytes generated will be called {name}_priv.