Commit Graph

2703 Commits

Author SHA1 Message Date
Bard liao ed97bb9418 topology: update HDA index
The index should be 0,1,2 instead of all 0.

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
2019-04-02 09:52:25 +01:00
Bartosz Kokoszko acf2bd52d5 codeowners: updated tools/logger codeowners
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-04-01 14:56:35 +01:00
Tomasz Lauda c14554349f component: add check if optional comp_ops are available
Adds check if optional comp_ops are available.
This patch also adds assert for mandatory ops.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-01 14:54:43 +01:00
Tomasz Lauda 872a04779e debug: add assert macro
Adds assert macro to easily locate wrong
parameters. If condition is not met we
will panic.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-01 14:54:43 +01:00
Adrian Bonislawski 592ffdd567 coredump-reader: add README
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-01 12:39:46 +01:00
Ranjani Sridharan eac4a73232 scripts: use project root directory instead of relative path
Use the SOF project root directory in get_abi.sh to read the
ABI macros instead of using the relative path.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2019-04-01 10:39:26 +01:00
Marcin Maka ad0ff1f2e5 tools: logger: added less formatted output mode
Activated by '-r' option. Useful for intermediate log
processing when the output is used as an input for another
tool. No headers, tokens separated by single spaces,
component ids concatenated with component name to
still produce a single token if present.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2019-04-01 11:37:57 +02:00
Liam Girdwood e58aa90483
github: update feature template
Initial feature template
2019-04-01 10:29:14 +01:00
Marcin Maka dc452b2771 cmake: generate map (section header list) file for sof elf
This file is useful to visualize memory map of the fw image
with much more details than using just the aggregated data
available from the .ri file manifest.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2019-04-01 11:27:29 +02:00
Liam Girdwood ef0d90af76
Update issue templates
Initial bug report.
2019-04-01 10:13:02 +01:00
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