From 4d35480c6451c9db10d9a653fa39cdc94e671565 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Mon, 14 Nov 2022 15:54:25 +0200 Subject: [PATCH] Tools: Tune: SRC: Change the SRC gain to 0 dB This change aligns the gains in all other conversions sets with IPC4 that already has the same setting. The max gain of a converter is 0 dB. It also avoids the issue of 1 dB lower gain in 2-stage vs. 1-stage conversions. This changes only the generate scripts. The coefficients need a separate patch. Signed-off-by: Seppo Ingalsuo --- tools/tune/src/src_small_int32.m | 2 +- tools/tune/src/src_std_int32.m | 2 +- tools/tune/src/src_tiny_int16.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tune/src/src_small_int32.m b/tools/tune/src/src_small_int32.m index ae787789a..4e4866b5e 100644 --- a/tools/tune/src/src_small_int32.m +++ b/tools/tune/src/src_small_int32.m @@ -23,6 +23,6 @@ cfg.profile = 'small'; cfg.quality = 1.0; cfg.thdn = -90; cfg.speed = 0; -cfg.gain = -1; % Make gain -1 dB +cfg.gain = 0; src_generate(fs1, fs2, fs_matrix, cfg); diff --git a/tools/tune/src/src_std_int32.m b/tools/tune/src/src_std_int32.m index 245fcef45..dd6f62f5c 100644 --- a/tools/tune/src/src_std_int32.m +++ b/tools/tune/src/src_std_int32.m @@ -52,6 +52,6 @@ cfg.profile = 'std'; cfg.quality = 1.0; cfg.thdn = -90; cfg.speed = 0; -cfg.gain = -1; % Make gain -1 dB +cfg.gain = 0; src_generate(fs1, fs2, fs_matrix, cfg); diff --git a/tools/tune/src/src_tiny_int16.m b/tools/tune/src/src_tiny_int16.m index da1337feb..bedab896a 100644 --- a/tools/tune/src/src_tiny_int16.m +++ b/tools/tune/src/src_tiny_int16.m @@ -43,6 +43,6 @@ cfg.profile = 'tiny'; cfg.quality = 0.40; cfg.thdn = -90; cfg.speed = 1; -cfg.gain = -1; % Make gain -1 dB +cfg.gain = 0; src_generate(fs1, fs2, fsm, cfg);