[Sound-open-firmware] [PATCH] SOFT: Add SRC coefficients generate tool

Liam Girdwood liam.r.girdwood at linux.intel.com
Mon Jun 4 11:13:34 CEST 2018


On Mon, 2018-06-04 at 11:02 +0300, Seppo Ingalsuo wrote:
> This patch adds the scripts src_std_int32.m and src_tiny_int16.m those
> were used to create the conversions matrices for the default and tiny
> profiles. The scripts call the included src_generate function that
> does the task with help from the filter design and coefficients
> export utilities.
> 
> The quality and resources consumption of SRC can be customized with
> this tool.
> 

Thanks I've applied, but some minor comments.

> Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo at linux.intel.com>
> ---
>  tune/src/README                |  36 +++++

This will need moved to doc/ and converted to our markup format (more on that
later). 

>  tune/src/src_export_coef.m     | 212 ++++++++++++++++++++++++++++
>  tune/src/src_export_defines.m  |  66 +++++++++
>  tune/src/src_export_table_2s.m | 190 +++++++++++++++++++++++++
>  tune/src/src_factor1_lm.m      |  44 ++++++
>  tune/src/src_factor2_lm.m      | 155 ++++++++++++++++++++
>  tune/src/src_find_l0m0.m       |  71 ++++++++++
>  tune/src/src_generate.m        | 311
> +++++++++++++++++++++++++++++++++++++++++
>  tune/src/src_get.m             | 254 +++++++++++++++++++++++++++++++++
>  tune/src/src_param.m           |  87 ++++++++++++
>  tune/src/src_std_int32.m       |  30 ++++
>  tune/src/src_tiny_int16.m      |  41 ++++++
>  12 files changed, 1497 insertions(+)
>  create mode 100644 tune/src/README
>  create mode 100644 tune/src/src_export_coef.m
>  create mode 100644 tune/src/src_export_defines.m
>  create mode 100644 tune/src/src_export_table_2s.m
>  create mode 100644 tune/src/src_factor1_lm.m
>  create mode 100644 tune/src/src_factor2_lm.m
>  create mode 100644 tune/src/src_find_l0m0.m
>  create mode 100644 tune/src/src_generate.m
>  create mode 100644 tune/src/src_get.m
>  create mode 100644 tune/src/src_param.m
>  create mode 100644 tune/src/src_std_int32.m
>  create mode 100644 tune/src/src_tiny_int16.m

We should also add a check for GNU octave in configure.ac and a simple script
that runs octave and outputs a C file with the new coefficients (by default it
should just emit the same coefficients we use today).

Thanks

Liam


More information about the Sound-open-firmware mailing list