From e138709ea8f43cd16581d610b5ef23bd32725a6e Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Mon, 3 Jun 2024 13:44:08 +0300 Subject: [PATCH] Audio: SRC: Tune: Prefix top level functions with sof_ This change is done to avoid conflict with possible other similar scripts. Signed-off-by: Seppo Ingalsuo --- src/audio/src/tune/README | 12 ++++++------ .../src/tune/{src_generate.m => sof_src_generate.m} | 6 +++--- .../tune/{src_ipc4_int32.m => sof_src_ipc4_int32.m} | 2 +- .../{src_small_int32.m => sof_src_small_int32.m} | 2 +- .../tune/{src_std_int32.m => sof_src_std_int32.m} | 2 +- .../tune/{src_tiny_int16.m => sof_src_tiny_int16.m} | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) rename src/audio/src/tune/{src_generate.m => sof_src_generate.m} (98%) rename src/audio/src/tune/{src_ipc4_int32.m => sof_src_ipc4_int32.m} (96%) rename src/audio/src/tune/{src_small_int32.m => sof_src_small_int32.m} (93%) rename src/audio/src/tune/{src_std_int32.m => sof_src_std_int32.m} (98%) rename src/audio/src/tune/{src_tiny_int16.m => sof_src_tiny_int16.m} (98%) diff --git a/src/audio/src/tune/README b/src/audio/src/tune/README index 456503fb20a0..ad90d7098fc3 100644 --- a/src/audio/src/tune/README +++ b/src/audio/src/tune/README @@ -8,14 +8,14 @@ of objective audio quality parameters. The tools need GNU Octave version 4.0.0 or later with octave-signal package. -src_std_int32.m ---------------- +sof_src_std_int32.m +------------------- This script creates the default coefficient set and contains nothing else but call for src_generate. -src_tiny_int16.m ----------------- +sof_src_tiny_int16.m +-------------------- This script creates the tiny coefficient set. The script contains an example how to customize the input/output rates matrix and in a simple @@ -24,8 +24,8 @@ be done by editing file src_param.m directly. Note that int16 presentation for SRC coefficients will degrade even the default quality. -src_generate.m --------------- +sof_src_generate.m +------------------ Creates the header files to include to C into directory "include". A report of create modes is written to directory "reports". The diff --git a/src/audio/src/tune/src_generate.m b/src/audio/src/tune/sof_src_generate.m similarity index 98% rename from src/audio/src/tune/src_generate.m rename to src/audio/src/tune/sof_src_generate.m index 85809b23b60e..3cccea514d89 100644 --- a/src/audio/src/tune/src_generate.m +++ b/src/audio/src/tune/sof_src_generate.m @@ -1,8 +1,8 @@ -function src_generate(fs_in, fs_out, fs_inout, cfg); +function sof_src_generate(fs_in, fs_out, fs_inout, cfg); -% src_generate - export src conversions for given fs_in and fs_out +% sof_src_generate - export src conversions for given fs_in and fs_out % -% src_generate(fs_in, fs_out <, fs_inout, >) +% sof_src_generate(fs_in, fs_out <, fs_inout, >) % % fs_in - vector of input sample rates (M) % fs_out - vector of output sample rates (N) diff --git a/src/audio/src/tune/src_ipc4_int32.m b/src/audio/src/tune/sof_src_ipc4_int32.m similarity index 96% rename from src/audio/src/tune/src_ipc4_int32.m rename to src/audio/src/tune/sof_src_ipc4_int32.m index 0ecf988153e3..e1563b37cfaa 100644 --- a/src/audio/src/tune/src_ipc4_int32.m +++ b/src/audio/src/tune/sof_src_ipc4_int32.m @@ -34,4 +34,4 @@ cfg.speed = 0; cfg.gain = 0; % Make gain 0 dB -src_generate(fs1, fs2, fs_matrix, cfg); +sof_src_generate(fs1, fs2, fs_matrix, cfg); diff --git a/src/audio/src/tune/src_small_int32.m b/src/audio/src/tune/sof_src_small_int32.m similarity index 93% rename from src/audio/src/tune/src_small_int32.m rename to src/audio/src/tune/sof_src_small_int32.m index 4e4866b5ed02..3583aa2a75e5 100644 --- a/src/audio/src/tune/src_small_int32.m +++ b/src/audio/src/tune/sof_src_small_int32.m @@ -25,4 +25,4 @@ cfg.speed = 0; cfg.gain = 0; -src_generate(fs1, fs2, fs_matrix, cfg); +sof_src_generate(fs1, fs2, fs_matrix, cfg); diff --git a/src/audio/src/tune/src_std_int32.m b/src/audio/src/tune/sof_src_std_int32.m similarity index 98% rename from src/audio/src/tune/src_std_int32.m rename to src/audio/src/tune/sof_src_std_int32.m index dd6f62f5c875..81e6f98d20fd 100644 --- a/src/audio/src/tune/src_std_int32.m +++ b/src/audio/src/tune/sof_src_std_int32.m @@ -54,4 +54,4 @@ cfg.speed = 0; cfg.gain = 0; -src_generate(fs1, fs2, fs_matrix, cfg); +sof_src_generate(fs1, fs2, fs_matrix, cfg); diff --git a/src/audio/src/tune/src_tiny_int16.m b/src/audio/src/tune/sof_src_tiny_int16.m similarity index 98% rename from src/audio/src/tune/src_tiny_int16.m rename to src/audio/src/tune/sof_src_tiny_int16.m index bedab896a3ee..26dfdf3bae4e 100644 --- a/src/audio/src/tune/src_tiny_int16.m +++ b/src/audio/src/tune/sof_src_tiny_int16.m @@ -45,4 +45,4 @@ cfg.speed = 1; cfg.gain = 0; -src_generate(fs1, fs2, fsm, cfg); +sof_src_generate(fs1, fs2, fsm, cfg);