Tune: SRC: Fix rate exclusion in generator script

This patch fixes a mistake that forces generation of rate into
fs_inout matrix diagonal. The purpose of this test is to enable
SRC to pass equal input and output rate, so in case not equal
input and output rates the generator would not disable such
conversion if requested.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2020-01-28 13:27:51 +02:00 committed by Liam Girdwood
parent bd5c275a92
commit 6f99d71d58
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ for b = 1:nfso
f_pb = fs1*cnv1.c_pb;
cnv2.c_pb = f_pb/min(fs2,fs3);
end
if fs_inout(a,b) > 0 || (a == b)
if fs_inout(a,b) > 0 || abs(fs1 - fs2) < eps
if cnv2.fs1-cnv2.fs2 > eps
% Allow half ripple for dual stage SRC parts
cnv1.rp = cnv1.rp/2;