Added mecpy_s which performs checks similar to standard lib and
uses architectural copy mechanic or fallsback to memcopy.
Added memset_s which performs checks similar to standard lib and
uses architectural set mechanic.
Chaged bzero to memset since memset has optimizations for zeroing.
Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
An earlier update for ABI major, minor, patch versioning has missed
to update this header that caused the EQ settings to fail with any
version bump.
The ABI version check in components is not needed since it is
done in the comp_cmd() inline function that calls the the component
command handlers.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
The component allows to select from a topology file one of channels
from an input buffer to be copied to an output buffer (provides channels
count reduction functionality). In case the component is configured to
output 2 or 4 channels it works in a passthrough mode.
Signed-off-by: Lech Betlej <lech.betlej@linux.intel.com>
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
The key phrase buffer component skeleton. This component enables
to copy real time data stream from source to sink and in the same
time buffers this data into its own internal "history buffer".
Data from internal buffer can be drained later on specific event.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
One shared memory block SOF_FW for SOF_TEXT, SOF_DATA and SOF_BSS sections.
Moved fw_ready near to .rodata and .data
Removed setting of .text_size for APL manifes
Updated rom.x.in (SOF_BSS_DATA_START is no longer in use)
Used linker symbols to obtain real BSS size in alloc.h
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This route is automatically created when the host comp is created
during topology loading. So remove it to avoid duplicating
the connection in the dapm graph.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
alsatplg allows setting inverted bclk and fsync polarities
by setting either bclk_invert or fsync_invert to "true".
This patch adds a default parameter in the SSP_CLOCK m4
macro which allows setting inverted bclk and fsync polarities.
Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
Adds get_data_size operation to DMA.
This operation allows components to retrieve
currently available data from input and output
DMAs.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
After commit 93a52130c1 ("pipeline: preloader: simplify
preloader by reusing pipeline copy()") copy completion handling
is done via the pipeline infrastructure. So just remove the
remaining code relicts who are there only to confuse the
novice reader.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This patch fixes the use of private copies of the same header file
defined parameters in several C files that is not good practise to
do. They were not defined as proper global variables. Instead the
same parameters are now simply passed in function calls only to where
needed.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Argument -B<builddir> is not supported in minimum version of CMake
required by our project (3.10).
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Cache was invalidated in improper order, which led to using rubbish
data on slave core during pipeline trigger start.
Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
On BDW, DMA trace doesn't update trace log to host.
platform_timer_start function would set up some registers
for HW and make timer ready. On BDW, cpu timer is used to
driver work queue while on other platforms, external timer
is used. we don't need to enable timer interrupt now or it
will trigger unexpect interrupt which would make scheduler
in unknown status. timer_enable function would enable it
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
Check for prepare state in dai_params. It allows for
configuring multiple host pipelines connected to one
dai pipeline e.g. mixer topology.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
After commit 425aa5e917 ("ipc: Add support for creating pipelines
dynamically") the prototype of init_static_pipeline function has
changed.
Use the correct prototype to call init_static_pipline to avoid
compilation failure when STATIC_PIPE is defined.
Fixes: 425aa5e917 ("ipc: Add support for creating pipelines dynamically")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Move large functions from src/include/sof/wait.h to src/lib/wait.c to
avoid building them multiple times.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>