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>
This commit is contained in:
Seppo Ingalsuo 2018-10-23 12:43:58 +03:00
parent b793f0c1a0
commit d5b4f5705f
2 changed files with 5 additions and 0 deletions

View File

@ -137,6 +137,7 @@ case "$with_arch" in
ARCH="host"
AC_SUBST(ARCH)
AC_DEFINE([CONFIG_HOST], [1], [Configure for Host])
;;
*)
if test "$have_rimage" = "no" && test "$have_doc" = "no" ; then

View File

@ -66,7 +66,11 @@
#endif
#else
/* GCC */
#if defined(CONFIG_HOST)
#define SRC_SHORT 0 /* Use high quality 32 bit filter coefficients */
#else
#define SRC_SHORT 1 /* Use 16 bit filter coefficients for speed */
#endif
#define SRC_GENERIC 1
#define SRC_HIFIEP 0
#define SRC_HIFI3 0