Skip to content

Commit dbc1601

Browse files
committed
Audio: SRC: Tune: Add conversions to 11.025 and 22.05 kHz
This change adds conversions from 48 and 96 kHz to rates 11.025 and 22.05 kHz. A column for 64 kHz output rate is added for completeness, since it is the only missing standard rate (e.g. for MPEG), but no conversions are activated for it while there is no requirement yet. Some comments are added to script and some formatting is done for readability for supported conversions. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent c01ef7b commit dbc1601

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

src/audio/src/tune/sof_src_ipc4_int32.m

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,32 @@
22

33
% SPDX-License-Identifier: BSD-3-Clause
44
%
5-
% Copyright(c) 2022 Intel Corporation. All rights reserved.
5+
% Copyright(c) 2022-2025 Intel Corporation.
66

77
fs1 = [ 8 11.025 12 16 18.9 22.05 24 32 37.8 44.1 48 64 88.2 96 176.4 192 ] * 1e3;
8-
9-
fs2 = [8 16 24 32 44.1 48 88.2 96 176.4 192] * 1e3;
8+
fs2 = [ 8 11.025 16 22.05 24 32 44.1 48 64 88.2 96 176.4 192 ] * 1e3;
109

1110
fs_matrix = [
12-
1 1 1 1 1 1 1 1 1 1
13-
1 1 1 1 1 1 1 1 1 0
14-
1 1 1 1 1 1 1 1 1 1
15-
1 1 1 1 1 1 1 1 1 1
16-
0 0 1 0 1 1 0 0 0 0
17-
1 1 1 1 1 1 1 1 1 1
18-
1 1 1 1 1 1 1 1 1 1
19-
1 1 1 1 1 1 1 1 1 1
20-
0 0 0 0 1 1 1 1 0 0
21-
1 1 1 1 1 1 1 1 1 1
22-
1 1 1 1 1 1 1 1 1 1
23-
1 1 1 1 1 1 1 1 1 1
24-
1 1 1 1 1 1 1 1 1 1
25-
1 1 1 1 1 1 1 1 1 1
26-
1 1 1 1 1 1 1 1 1 1
27-
1 1 1 1 1 1 1 1 1 1
11+
% 1 1
12+
% 1 1 2 2 3 4 4 6 8 9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