sof/tools/tune/common
Seppo Ingalsuo d3b7e54f3f Tools: Tune: dcblock: Create set of cut-off frequencies
This patch modifies script example_dblock.m to create in
addition to existing default coefficients blob with parameter
R=0.98 a set of blobs those provide (-3 dB) cut-off frequencies
20, 30, 40, 50, 100, 200 Hz for 16 kHz and 48 kHz for various
usages. Human understandable parameters for blobs helps to select
the configuration for the needed dcblock usage.

The parameter value R for given frequencies is calculated
with iterative function dcblock_rval_calculate(). A closed
form equation might be possible to derive from the transfer
function. If such is found this function can be replaced with
quicker equation -- or with more advanced faster converging
iteration.

The topology blob export functions are also modified to add
comment line for exact build command.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2023-10-16 16:38:41 +01:00
..
README.md
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
tplg2_write.m Tools: Tune: dcblock: Create set of cut-off frequencies 2023-10-16 16:38:41 +01:00
tplg_write.m Tools: Tune: dcblock: Create set of cut-off frequencies 2023-10-16 16:38:41 +01: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.