src: enable hifi4 optimized src build with zephyr

Add src_hifi4.c to sources when building with zephyr.

Signed-off-by: Krzysztof Frydryk <krzysztofx.frydryk@intel.com>
This commit is contained in:
Krzysztof Frydryk 2022-07-25 09:57:48 +02:00 committed by Liam Girdwood
parent d25b64950e
commit a6e936359c
2 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,11 @@
#include <stddef.h>
#include <stdint.h>
/* sof/math/numbers.h doesn't define MIN when used with zephyr */
#ifdef __ZEPHYR__
#include <zephyr/sys/util.h>
#endif /* __ZEPHYR__ */
/* HiFi4 has
* 16x 64 bit registers in register file AE_DR
*/

View File

@ -707,6 +707,7 @@ zephyr_library_sources_ifdef(CONFIG_COMP_SRC
${SOF_AUDIO_PATH}/src/src_hifi2ep.c
${SOF_AUDIO_PATH}/src/src_generic.c
${SOF_AUDIO_PATH}/src/src_hifi3.c
${SOF_AUDIO_PATH}/src/src_hifi4.c
${SOF_AUDIO_PATH}/src/src.c
)