mirror of https://github.com/thesofproject/sof.git
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:
parent
b793f0c1a0
commit
d5b4f5705f
|
@ -137,6 +137,7 @@ case "$with_arch" in
|
||||||
|
|
||||||
ARCH="host"
|
ARCH="host"
|
||||||
AC_SUBST(ARCH)
|
AC_SUBST(ARCH)
|
||||||
|
AC_DEFINE([CONFIG_HOST], [1], [Configure for Host])
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if test "$have_rimage" = "no" && test "$have_doc" = "no" ; then
|
if test "$have_rimage" = "no" && test "$have_doc" = "no" ; then
|
||||||
|
|
|
@ -66,7 +66,11 @@
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
/* GCC */
|
/* 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 */
|
#define SRC_SHORT 1 /* Use 16 bit filter coefficients for speed */
|
||||||
|
#endif
|
||||||
#define SRC_GENERIC 1
|
#define SRC_GENERIC 1
|
||||||
#define SRC_HIFIEP 0
|
#define SRC_HIFIEP 0
|
||||||
#define SRC_HIFI3 0
|
#define SRC_HIFI3 0
|
||||||
|
|
Loading…
Reference in New Issue