Xtensa Developer Guide
Overview
This page contains information on certain aspects when developing for Xtensa-based platforms.
HiFi Audio Engine DSP
The kernel allows threads to use the HiFi Audio Engine DSP registers on boards that support these registers. The kernel only supports the use of the HiFi registers by threads and not ISRs.
Note
Presently, only the Intel ADSP ACE hardware platforms are configured for HiFi support by default.
Concepts
The kernel can be configured for an application to leverage the services provided by the Xtensa HiFi Audio Engine DSP. Three modes of operation are supported, which are described below.
No HiFi registers mode
This mode is used when the application has no threads that use the HiFi registers. It is the kernel’s default HiFi services mode.
Configuration Options
The unshared HiFi registers mode is selected when configuration option
CONFIG_XTENSA_HIFI_SHARING
is disabled but configuration
options CONFIG_XTENSA_HIFI3
and/or
CONFIG_XTENSA_HIFI4
are enabled.
The shared HiFi registers mode is selected when the configuration option
CONFIG_XTENSA_HIFI_SHARING
is enabled in addition to
configuration options CONFIG_XTENSA_HIFI3
and/or
CONFIG_XTENSA_HIFI4
. Threads must have sufficient
stack space for saving the HiFi register values during context switches
as described above.