Skip to content

Commit f5da507

Browse files
committed
audio: eap: Add support for custom NXP config parameters
In order to have a meaningful processing we need to use custom NXP configuration parameters. We cannot include the configuration files into SOF repo because of the license. Users need to clone the https://github.com/nxp-mcuxpresso/EAP repo which contains the library binary and the configuration files. Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
1 parent bb6972d commit f5da507

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

src/audio/nxp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ if(CONFIG_COMP_NXP_EAP)
77
else()
88
zephyr_library_import(EAPLibrary
99
${sof_top_dir}/eap_sdk/EAP_Library/libEAP16_3_0_13_FP1_RT600.a)
10+
zephyr_include_directories(${sof_top_dir}/eap_sdk)
1011
endif()
1112
endif()

src/audio/nxp/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ config COMP_NXP_EAP
88
The EAP is a bundle of audio processing blocks for enhancing the tonal
99
and spatial perception of sound in audio applications.
1010

11+
config COMP_NXP_EAP_CUSTOM_PRESETS
12+
tristate "NXP EAP custom configuration presets"
13+
depends on COMP_NXP_EAP
14+
default n
15+
help
16+
Select this in order to use NXP custom configuration parameters. Otherwise,
17+
some simple empty defaults will be used only for CI build purposes.
18+
1119
config COMP_NXP_EAP_STUB
1220
tristate "NXP EAP Component stub"
1321
default n

src/include/sof/audio/nxp/eap/EAP_Parameter_presets.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#ifndef EAP_PARAMETER_PRESETS_H_
22
#define EAP_PARAMETER_PRESETS_H_
33

4+
#ifdef CONFIG_COMP_NXP_EAP_CUSTOM_PRESETS
5+
#include <Example_Application/CONFIG_HEADER/EAP_Parameter_AllEffectOff.h>
6+
#include <Example_Application/CONFIG_HEADER/EAP_Parameter_AutoVolumeLeveler.h>
7+
#include <Example_Application/CONFIG_HEADER/EAP_Parameter_ConcertSound.h>
8+
#include <Example_Application/CONFIG_HEADER/EAP_Parameter_LoudnessMaximiser.h>
9+
#include <Example_Application/CONFIG_HEADER/EAP_Parameter_MusicEnhancerRMSLimiter.h>
10+
#include <Example_Application/CONFIG_HEADER/EAP_Parameter_VoiceEnhancer.h>
11+
12+
#else
13+
414
uint8_t InstParams_allEffectOff[28] = {
515
0x00, 0x00, 0x00, 0x00, 0xE0, 0x01, 0x0A, 0x00,
616
0x0A, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
@@ -188,4 +198,5 @@ uint8_t ControlParamSet_voiceEnhancer[216] = {
188198
0x00, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00
189199
};
190200

201+
#endif
191202
#endif /* EAP_PARAMETER_PRESETS_H_ */

0 commit comments

Comments
 (0)