Commit Graph

2893 Commits

Author SHA1 Message Date
Bard liao 052942c863 topology: add ABI information
We can add ABI information to the Manifest section. So kernel can
check if the topology is compatible with the kernel.

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
2019-03-29 16:55:04 +00:00
Adrian Bonislawski 2302012fe9 coredump-reader: fix fg error when running without colours
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-03-29 13:27:53 +01:00
Kai Vehmanen a9cb19ada3 topology: add param check to PIPELINE_*() macros
Abort build if not all mandatory arguments are passed to
the top-level pipeline macros.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2019-03-29 12:14:05 +00:00
Kai Vehmanen 10c641d307 topology: add param check to VIRTUAL_WIDGET()
Abort build if not all mandatory arguments are passed to the
macro.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2019-03-29 12:14:05 +00:00
Kai Vehmanen 90fbcd54f3 topology: add param check to DAI_CONFIG()
Abort build if not all mandatory arguments are passed to the
macro.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2019-03-29 12:14:05 +00:00
Kai Vehmanen 322fe24e95 topology: add param checks to PCM macros
Abort build if not all mandatory arguments are passed to
the macros. This should help to catch invalid usage.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2019-03-29 12:14:05 +00:00
Seppo Ingalsuo a10e69d2f1 EQ: Fix IPC data copy size in new() method in IIR and FIR
The used memcpy_s() has wrong size for destination. It causes the
prepare() method to fail later in component life cycle into sink buffer
resize due to zero config->periods_sink value. This patch fixes the
fail of pipeline instantantion with IIR and FIR EQ components.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-03-29 11:01:31 +01:00
Tomasz Lauda 742f83ba2f pipeline: update sof_ipc_pipe_new struct
Updates sof_ipc_pipe_new struct to better handle
different time domains:
- Changes "deadline" to "period".
- Changes "timer_delay" to "time_domain".

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-27 21:44:02 +00:00
Tomasz Lauda 6a0dcb3a10 topology: update all HDA pipelines to use timer
Updates all HDA pipelines in topologies to use
timer as a scheduling source.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-27 21:44:02 +00:00
Keyon Jie 0da78d7236 topology: refine scheduling period and add time domain for pipelines
Rename 'deadline' to 'period' to indicate pipeline scheduling period,
and add time domain to indicate the pipeline scheduling domain (e.g. DMA
interrupt, timer interrupt).

Please be noticed that this might introduce an abi change so consequent
abi changes in both FW and driver side are needed.

Haven't set the flag in topology/sof/sof-xxx.m4 yet, that means it will
use io/interrupt scheduling for those topologies/pipelines at the
moment, if wanna to change them, please change them specific there.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-27 21:44:02 +00:00
Adrian Bonislawski 44705dfc09 debugability: update coredump reader
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-03-27 21:10:48 +00:00
ArturX Kloniecki 25cd7795cc debugability: extend core dumps to provide AR registers.
Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-03-27 21:10:48 +00:00
Liam Girdwood c0a2697f32 gitignore: remove autotools ignore files.
Autotools not used anymore so remove ignore files.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2019-03-27 14:32:19 +00:00
Tomasz Lauda 8847b14440 pipeline: rename status
Renames pipeline status from PPL_PATH_STOP
to PPL_STATUS_PATH_STOP.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-27 14:28:56 +00:00
Tomasz Lauda b5070847bf component: rename status
Renames status COMP_STATE_ALREADY_SET to
COMP_STATUS_STATE_ALREADY_SET.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-27 14:28:56 +00:00
Fred Oh 498a5f571d topology: enable LBM for nocodec topology
Add quirks parameter in SSP_CONFIG_DATA(). Enable LBM in dupulex pipelines
by setting quirks as SOF_DAI_INTEL_SSP_QUIRK_LBM 64(1<<6). SSPx.IN port get
PCM data from SSPx.OUT. Note both mclk and quirks are optional parameter.
When quirks set, mclk should have value or initialize to default value
which is 0.

Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
2019-03-27 11:39:58 +00:00
Fred Oh 5194eabf4f topology: ssp: add quirks parameter in SSP_CONFIG_DATA
Support quirks setting from topology. quirk are used to set
ssc1/ssc2 registers according to its bit value.

Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
2019-03-27 11:39:58 +00:00
Guennadi Liakhovetski d8a6d8fccc ssi-spi: fix a regression, caused by a scheduler-update
After a recent scheduler update the API has changed: now it requires
task's private pointer to be NULL before calling schedule_task_init()

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-03-27 09:31:54 +00:00
Tomasz Lauda 9890d2b782 topology: add missing param to hda-generic-idisp topology
Adds missing param to sof-hda-generic-idisp.m4.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-26 17:18:22 +00:00
Jaska Uimonen c53d745e0a eq: make fir to receive large blobs in parts
Use ctrl data message id to receive and send large binary
blobs over ipc. When first message arrives, reserve memory
for the whole blob.

Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
2019-03-26 16:28:07 +00:00
Jaska Uimonen 0c232c86e4 ipc: add msg_id and elems_remaining to ctrl data struct
Add members to enable sending and receiving large messages
and bump abi minor version.

Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
2019-03-26 16:28:07 +00:00
Bartosz Kokoszko e5cf39ff9c schedule: ll: add ll specific traces
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-03-26 16:20:34 +00:00
Bartosz Kokoszko 5ea5da80dd schedule: ll: refinement low latency queue
I've removed queue per priority in low latency scheduler.
Now there is only one queue for all priorities. Scheduler adds
tasks to queue in descending order based on ther priority.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-03-25 14:25:10 +00:00
Janusz Jankowski d33f8c99a1 test: rename CHECK to UNIT_TEST
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-03-25 14:11:47 +00:00
Tomasz Lauda 939f500c86 pipeline: add PPL_PATH_STOP status
Adds new status to pipeline to accurately reflect
what is the expectation here. Value of 1 isn't
saying anything.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-25 13:52:46 +00:00
Tomasz Lauda 22f4bd9c18 component: add COMP_STATE_ALREADY_SET status
Adds new component status to accurately reflect
current status. Value of 1 isn't saying much.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-25 13:52:46 +00:00
Bartosz Kokoszko 090208a481 edf: using specific schedule_edf() instead of schedule()
I've changed scheduler invocation in schedule_edf_task_normal()
from generic schedule() to specific schedule_edf() for optimization
(there is no need to use generic functions in specific scheduler
implementation).

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-03-25 14:34:22 +01:00
Janusz Jankowski 11ccd01588 include: remove unused test file
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-03-25 14:32:36 +01:00
Janusz Jankowski 60e609cc99 mixer: make init unit-testable
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-03-24 13:42:10 +00:00
Janusz Jankowski 73cfb9b691 kpb: make init unit-testable
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-03-24 13:42:10 +00:00
Janusz Jankowski 9310135020 include: add header for unit testing
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey 509990620b volume: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey e1a757bd19 tone: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey 0056599b6e switch: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey 85f5cec364 src: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey 287ba112e3 selector: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey fe8ec158a0 mux: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey 94cf6677d8 mixer: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey 035c24fe7d kpb: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey 150294b248 host: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey f25db96012 eq: iir: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey a9969dbee4 eq: fir: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Curtis Malainey 1ea6d48e3c dai: make init function static
Fixes checkpatch error that slipped in

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:42:10 +00:00
Adrian Bonislawski 30f42d808e platform: merge platform.h and plat_cfg.h
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-03-24 13:32:35 +00:00
Curtis Malainey 9cc3f6d10e scripts: use local cpu count to build
Build faster by using all available cores by default
The xtensa script claims it used infinite build threads when j was not
specified but it was actually falling back to 1.

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:14:08 +00:00
Tomasz Lauda 52f99da480 eq_fir: fix dest_size in memcpy_s calls
Fixes dest_size in couple of memcpy_s calls.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-22 11:31:16 +00:00
Tomasz Lauda 3ffc2eb308 eq_iir: fix dest_size in memcpy_s calls
Fixes dest_size in couple of memcpy_s calls.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-22 11:31:16 +00:00
Jakub Dabek f8703cd32c memory: changed memcpy calls to memcpy_s in audio lib
Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2019-03-21 16:51:51 +00:00
Tomasz Lauda de469547ed host: fix playback with DW-DMA
Fixes playback with DW-DMA. Flow of pipeline copy
has changed, so now we need to preload the whole
buffer before allowing first copy to further
components. Also we need to move dma_copy call
to buffer callbacks to be up to date with data.
This was previosly done only for Host DMA.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-03-21 16:38:27 +00:00
Bartosz Kokoszko 240cd39a22 trace: removal trace logic when CONFIG_TRACE is not set
I've remove trace core logic from build when CONFIG_TRACE
is not set with Kconfig. When driver tries to enable traces
in case FW was built without tracing, FW returns error.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-03-21 16:32:31 +00:00