Cmocka: EQ: Fix the errors lead to eq-iir test failure

Fix the mistakes in scripts which would lead to eq-iir
test failure.

Signed-off-by: Andrula Song <xiaoyuan.song@intel.com>
This commit is contained in:
Andrula Song 2022-10-31 09:49:04 +08:00 committed by Liam Girdwood
parent 87bd3d628b
commit ef62a50893
1 changed files with 2 additions and 2 deletions

View File

@ -93,11 +93,11 @@ switch lower(eqtype)
for i = 1:hd.channels_in_config
decoded_eq = eq_iir_blob_decode(blob, hd.assign_response(i));
eq.b = decoded_eq.b;
eq.a = decodec_eq.a;
eq.a = decoded_eq.a;
h = freqz(eq.b, eq.a, eq.f, fs);
eq.m(:,i) = 20*log10(abs(h));
if do_group_delay
gd = grpdelay(teq.b, teq.a, eq.f, fs) / fs;
gd = grpdelay(eq.b, eq.a, eq.f, fs) / fs;
eq.gd(:,i) = gd;
end
end