mirror of https://github.com/thesofproject/sof.git
Tools: Test: Audio: In SRC THD+N test apply standard low pass
This patch applies for conversions where Nyquist rate allows a 20 kHz low-pass filter as specified in AES17 standard (test.fu). The sweep test is set no higher than 20 kHz (test.f_end). Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
4d35480c64
commit
044d0b208d
|
@ -262,8 +262,8 @@ end
|
||||||
|
|
||||||
prm = src_param(t.fs1, t.fs2, test.coef_bits);
|
prm = src_param(t.fs1, t.fs2, test.coef_bits);
|
||||||
test.f_start = 20;
|
test.f_start = 20;
|
||||||
test.f_end = prm.c_pb*min(t.fs1, t.fs2);
|
test.f_end = min(prm.c_pb * min(t.fs1, t.fs2), 20e3);
|
||||||
test.fu = prm.c_pb * t.fs2;
|
test.fu = min(prm.c_pb * t.fs2, 20e3); % AES17 5.2.5 standard low pass as 20 kHz
|
||||||
|
|
||||||
%% Create input file
|
%% Create input file
|
||||||
test = thdnf_test_input(test);
|
test = thdnf_test_input(test);
|
||||||
|
|
Loading…
Reference in New Issue