[Sound-open-firmware] [PATCH 1/6] SRC: Files structure change and add Xtensa optimized versions

Liam Girdwood liam.r.girdwood at linux.intel.com
Fri Mar 9 09:31:06 CET 2018


On Thu, 2018-03-08 at 16:22 +0200, Seppo Ingalsuo wrote:
> This patch moves generic common code to src.c/h from src_core.c/h and
> places generic C optimized filter to src_generic.c. The HiFi EP
> version is in src_hifi2ep.c and HiFi3 version is in src_hifi3.c. Use of
> the Xtensa optimized versions require xt-xcc compiler.
> 
> The non-used SRC in/out rates query code is removed. The 24 bit
> coefficients were replaced by 32 bit coefficients those are compatible
> with Xtensa fractional integer types.
> 
> Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo at linux.intel.com>
> ---
>  src/audio/Makefile.am           |   4 +-
>  src/audio/src.c                 | 346 ++++++++++++++++++--
>  src/audio/{src_core.h => src.h} |  17 +-
>  src/audio/src_config.h          |  57 +++-
>  src/audio/src_core.c            | 676 -------------------------------------
> ---
>  src/audio/src_generic.c         | 435 ++++++++++++++++++++++++++
>  src/audio/src_hifi2ep.c         | 562 +++++++++++++++++++++++++++++++++
>  src/audio/src_hifi3.c           | 567 +++++++++++++++++++++++++++++++++
>  8 files changed, 1938 insertions(+), 726 deletions(-)
>  rename src/audio/{src_core.h => src.h} (93%)
>  delete mode 100644 src/audio/src_core.c
>  create mode 100644 src/audio/src_generic.c
>  create mode 100644 src/audio/src_hifi2ep.c
>  create mode 100644 src/audio/src_hifi3.c

Thanks

All applied.

Liam


More information about the Sound-open-firmware mailing list