Test: Audio: Fix stdnotch_get() function issue in Matlab

The path append of current directory (.) is not correct for
the signal processing package function iirnotch. The issue does
not happen with Octave since it has pei_tseng_notch().

The standard notch function is used in all THD+N tests so this
issue has caused fail of nearly all tests with Matlab.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2022-01-11 15:34:49 +02:00 committed by Liam Girdwood
parent 30012d1454
commit e0ec195bcd
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ function [b, a] = stdnotch_get(fn, fs)
target_q = 2.1;
bw = (2*fn/fs)/target_q;
if exist(fullfile('.', 'iirnotch.m'),'file') == 2
if exist(fullfile('iirnotch.m'),'file') == 2
[b, a] = iirnotch(2*fn/fs, bw);
else
[b, a] = pei_tseng_notch(2*fn/fs, bw);