From e6f677959bf0604ceb527a8e6ee5f24400ce0931 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 8 Feb 2022 11:20:13 +0200 Subject: [PATCH] Tools: Test: Audio: Fix typos in tools/test/audio/* This patch fixes the typos in audio test Matlab code. Signed-off-by: Seppo Ingalsuo --- tools/test/audio/src_test.m | 4 ++-- tools/test/audio/std_utils/fr_test_measure.m | 2 +- tools/test/audio/test_utils/load_test_output.m | 2 +- tools/test/audio/test_utils/multitone.m | 2 +- tools/test/audio/test_utils/sync_chirp.m | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/test/audio/src_test.m b/tools/test/audio/src_test.m index e0b38adb8..4c9af2b93 100644 --- a/tools/test/audio/src_test.m +++ b/tools/test/audio/src_test.m @@ -11,7 +11,7 @@ function [n_fail, n_pass, n_na] = src_test(bits_in, bits_out, fs_in_list, fs_out % fs_out - vector of rates out % % A default in-out matrix with 32 bits data is tested if the -% paremeters are omitted. +% parameters are omitted. % % SPDX-License-Identifier: BSD-3-Clause @@ -386,7 +386,7 @@ end % in the plot as additional freqiencies than main linear up sweep. The aliasing % can be a line, few lines, or lattice pattern depending the SRC conversion % to test. The main sweep line should be steady level and extend from near -% zero freqeuncy to near Nyquist (Fs/2). +% zero frequency to near Nyquist (Fs/2). function fail = chirp_test(t) diff --git a/tools/test/audio/std_utils/fr_test_measure.m b/tools/test/audio/std_utils/fr_test_measure.m index c884cebaa..90d520705 100644 --- a/tools/test/audio/std_utils/fr_test_measure.m +++ b/tools/test/audio/std_utils/fr_test_measure.m @@ -3,7 +3,7 @@ function test = fr_test_measure(test) %% t = fr_test_measure(t) % % Measure frequency response from captured frequency sweep created by -% fr_test_input() that sets most of the input struct fiels. The output +% fr_test_input() that sets most of the input struct fields. The output % is read from file t.fn_out. % % The test criteria is defined with first three or four latter input diff --git a/tools/test/audio/test_utils/load_test_output.m b/tools/test/audio/test_utils/load_test_output.m index a85d67035..79eafd9f3 100644 --- a/tools/test/audio/test_utils/load_test_output.m +++ b/tools/test/audio/test_utils/load_test_output.m @@ -61,7 +61,7 @@ else out = []; end -%% Exctract channels to measure +%% Extract channels to measure scale = 1/2^(bits_out-1); lout = length(out); nx = floor(lout/test.nch); diff --git a/tools/test/audio/test_utils/multitone.m b/tools/test/audio/test_utils/multitone.m index fb2fa5561..15ae6c603 100644 --- a/tools/test/audio/test_utils/multitone.m +++ b/tools/test/audio/test_utils/multitone.m @@ -8,7 +8,7 @@ function x = multitone( fs, f, amp, tlength ) % fs - Sample rate % f - Frequency (Hz) % a - Amplitude (lin) -% t - Lenght in seconds +% t - Length in seconds % % Example: % x = multitone(48000, [997 1997], 10.^([-26 -46]/20), 1.0); diff --git a/tools/test/audio/test_utils/sync_chirp.m b/tools/test/audio/test_utils/sync_chirp.m index 513a42690..2209f9f8b 100644 --- a/tools/test/audio/test_utils/sync_chirp.m +++ b/tools/test/audio/test_utils/sync_chirp.m @@ -3,7 +3,7 @@ function [y, mark]= sync_chirp(fs, direction) %% [y, mark]= sync_chirp(fs, direction) % % Returns a chirp signal that can be used to mark end and beginning of audio -% tests to syncronize input and captured output accurately. +% tests to synchronize input and captured output accurately. % % Input % fs - sample rate