mirror of https://github.com/thesofproject/sof.git
Testbench: Add S16_LE format test for SRC
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
c76a458e4f
commit
81e0333e19
|
@ -28,6 +28,11 @@
|
||||||
% Author: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
|
% Author: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
|
||||||
%
|
%
|
||||||
|
|
||||||
|
[n_fail, n_pass] = src_test(16, 16);
|
||||||
|
if n_fail > 0 || n_pass < 1
|
||||||
|
fprintf('Error: SRC test with 16 bits data failed.\n');
|
||||||
|
quit(1)
|
||||||
|
end
|
||||||
[n_fail, n_pass] = src_test(24, 24);
|
[n_fail, n_pass] = src_test(24, 24);
|
||||||
if n_fail > 0 || n_pass < 1
|
if n_fail > 0 || n_pass < 1
|
||||||
fprintf('Error: SRC test with 24 bits data failed.\n');
|
fprintf('Error: SRC test with 24 bits data failed.\n');
|
||||||
|
@ -39,4 +44,4 @@ if n_fail > 0 || n_pass < 1
|
||||||
quit(1)
|
quit(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
fprintf('Success: SRC test with 24 and 32 bits data passed.\n');
|
fprintf('Success: SRC test with 16, 24 and 32 bits data passed.\n');
|
||||||
|
|
Loading…
Reference in New Issue