Go to file
Karol Trzcinski f34d9ba928 audio_stream: Calculate sample size inside audio_stream_copy function
Sample size is related with frame format, which is saved inside
audio_stream, so this value can be easily calculated inside
audio_stream_copy function. This approach allows to delete
functions like audio_stream_copy_s16/s32 and functions related
to them, then code will be shorter and cleaner.

Moreover in future, during compressed stream implementation, there
won't be need to add new copy function implementation for compressed
streams, it will be sufficient to return 1 in audio_stream_sample_bytes()
for non-pcm formats, then sample calculation will be equal to number
of bytes and generic function like copy shoudn't have any trouble to
handle such a data type.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
2020-07-31 11:35:44 +02:00
.github/ISSUE_TEMPLATE github: fix link to bug tracking docs 2020-01-09 11:24:06 +00:00
doc audio-stream: dox: add full api documentation 2020-03-28 13:04:55 +01:00
keys Move signing key pair from rimage/ up one level 2020-05-13 10:16:04 +01:00
rimage@7317f2af39 Revert accidental rimage downgrade in "topology: mirror CML topologies for TGL" 2020-07-20 10:39:54 +01:00
scripts zephyr: kconfig: rename CONFIG_SMP -> CONFIG_MULTICORE 2020-07-24 19:55:05 +01:00
smex rimage: Update to version with changed headers location 2020-05-29 11:15:22 +01:00
src audio_stream: Calculate sample size inside audio_stream_copy function 2020-07-31 11:35:44 +02:00
test zephyr: kconfig: rename CONFIG_SMP -> CONFIG_MULTICORE 2020-07-24 19:55:05 +01:00
tools testbench: add null pointer check for function argument 2020-07-23 14:28:26 +01:00
zephyr zephyr: Update README to add instruction for debug loggin on qmeu 2020-07-23 14:58:25 +01:00
.gitignore .gitignore: remove .tarball-version 2020-07-10 15:41:18 +01:00
.gitmodules Add rimage as a git submodule 2020-05-13 10:16:04 +01:00
.travis.yml .travis.yml: build ROM for "buildonly" platforms too 2020-06-23 12:03:15 +01:00
CMakeLists.txt CMakeLists.txt: change generated config.h default to autoconfig.h 2020-06-22 13:01:26 +01:00
CODEOWNERS Remove rimage from source tree 2020-05-13 10:16:04 +01:00
Kconfig Revert "idc: set budget for IDC task" 2020-07-29 15:50:42 -05:00
LICENCE Remove rimage from source tree 2020-05-13 10:16:04 +01:00
README.md README.md: fix Travis badge not to show the random PR of the moment 2020-06-10 10:56:24 +01:00

README.md

Sound Open Firmware

Status

Build Status Gitter chat IRC chat

Documentation

See docs

Prerequisites

  • Docker
  • CMake (version >= 3.10)

Build Instructions

  1. Create directory in checked out repo for build files:
mkdir build && cd build
  1. Run configuration for your toolchain:

Baytrail / Cherrytrail:

cmake -DTOOLCHAIN=xtensa-byt-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-byt-elf ..

Haswell / Broadwell:

cmake -DTOOLCHAIN=xtensa-hsw-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-hsw-elf ..

Apollolake:

cmake -DTOOLCHAIN=xtensa-apl-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-apl-elf ..

Cannonlake:

cmake -DTOOLCHAIN=xtensa-cnl-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-cnl-elf ..
  1. Apply default config for your platform.

Baytrail:

make baytrail_defconfig

Cherrytrail:

make cherrytrail_defconfig

Haswell:

make haswell_defconfig

Broadwell:

make broadwell_defconfig

Apollolake:

make apollolake_defconfig

Cannonlake:

make cannonlake_defconfig
  1. (Optional) Customize your configuration
make menuconfig
  1. Build firmware
make bin
# or `make bin -j<jobs>` for parallel build

Running the tests

See unit testing documentation

Deployment

TODO: Add additional notes about how to deploy this on a live system

Contributing

See Contributing to the Project

License

This project is licensed under the BSD Clause 3 - see the LICENCE file for details