Skip to content

Commit d5b4f57

Browse files
committed
SRC: Use 32 bit filter coefficients in host testbench
This patch adds definition of CONFIG_HOST for SOF host version build and selects for SRC the better quality and full conversions set in such case. The problem with default for gcc was that the conversions set for non-optimized xtensa gcc is very limited and the quality has been lowered to save resources. Hence the testbench creates huge amount of fails without this change. With this patch the SRC test tracks the quality of coefficients for optimized HiFiEP/HiFi3 version code. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent b793f0c commit d5b4f57

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ case "$with_arch" in
137137

138138
ARCH="host"
139139
AC_SUBST(ARCH)
140+
AC_DEFINE([CONFIG_HOST], [1], [Configure for Host])
140141
;;
141142
*)
142143
if test "$have_rimage" = "no" && test "$have_doc" = "no" ; then

src/audio/src_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
#endif
6767
#else
6868
/* GCC */
69+
#if defined(CONFIG_HOST)
70+
#define SRC_SHORT 0 /* Use high quality 32 bit filter coefficients */
71+
#else
6972
#define SRC_SHORT 1 /* Use 16 bit filter coefficients for speed */
73+
#endif
7074
#define SRC_GENERIC 1
7175
#define SRC_HIFIEP 0
7276
#define SRC_HIFI3 0

0 commit comments

Comments
 (0)