sof/tools/tune/common
Sebastiano Carlucci c6f83acd0e tools: tune: Add tools to generate bytes control
This commits adds the scripts to generate the bytes control blob
for the DCB. It also provides some generic scripts to convert
valid binary blob to a csv or binary file (usable by sof-ctl)
or an m4 byte control topology file.

This commit adds two new folders under tools/tune
- dcblock: scripts to generate the blob in Octave
- common: scripts to convert any generic blob to a config file.

Signed-off-by: Sebastiano Carlucci <scarlucci@google.com>
2020-03-26 16:49:37 +00:00
..
README.md tools: tune: Add tools to generate bytes control 2020-03-26 16:49:37 +00:00
alsactl_write.m tools: tune: Add tools to generate bytes control 2020-03-26 16:49:37 +00:00
blob_write.m tools: tune: Add tools to generate bytes control 2020-03-26 16:49:37 +00: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.