Skip to content

Conversation

@singalsu
Copy link
Collaborator

No description provided.

This patch moves the twiddle factors tables to sof/src/math/fft/coef
directory. The purpose is to make the FFT library more modular. Also
there is no usage for the coefficients data beyond local usage by
the FFT functions.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch sets the twiddle factors data as __cold_rodata
when MATH_FFT_COLD_TWIDDLE_FACTORS is set to y. The twiddle
factors for the maximum FFT size are linked to DRAM and the
needed coefficients are copied to SRAM when the FFT plan is
initialized.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
mod_free(mod, plan->tmp_i32[0]);

mod_free(mod, plan->bit_reverse_idx);
mod_free(mod, plan->multi_twiddle);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shared_twiddle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants