Skip to content

Commit

Permalink
Math: FFT: Rename setup script function with sof prefix
Browse files Browse the repository at this point in the history
The script function name and help is updated. A README.md is
added how to use it.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
  • Loading branch information
singalsu authored and kv2019i committed Oct 17, 2024
1 parent 4371b6b commit 329d889
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/math/fft/tune/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Export FFT twiddle factors data

To generate the twiddle factors headers for FFT max size of 1024
(current assumption) run these shell commands:

octave -q --eval "sof_export_twiddle(32, 'twiddle_32.h', 1024);"
octave -q --eval "sof_export_twiddle(16, 'twiddle_16.h', 1024);"
cp twiddle_32.h ../../../include/sof/audio/coefficients/fft/
cp twiddle_16.h ../../../include/sof/audio/coefficients/fft/
4 changes: 2 additions & 2 deletions src/math/fft/tune/sof_export_twiddle.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% export_twiddle(bits, fn, fft_size_max)
% sof_export_twiddle(bits, fn, fft_size_max)
%
% Input
% bits - Number of bits for data, 16 or 32
Expand All @@ -9,7 +9,7 @@
%
% Copyright (c) 2022, Intel Corporation. All rights reserved.

function export_twiddle(bits, fn, fft_size_max)
function sof_export_twiddle(bits, fn, fft_size_max)

if nargin < 2
fn = 'twiddle.h';
Expand Down

0 comments on commit 329d889

Please sign in to comment.