Commit Graph

2821 Commits

Author SHA1 Message Date
Bartosz Kokoszko 1a89f40b80 driver: ssp: using CONFIG_CAVS define in ssp.h
Refactor by replacing specific CONFIG_{cavs_platform}
defines by CONFIG_CAVS define.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-04-05 14:45:39 +01:00
Adrian Bonislawski 1071076be1 coredump: enhancement of example file
To make it more user-friendly by getting rid of empty prompts in output

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-05 11:25:16 +02:00
Adrian Bonislawski 21e8d5efc5 heap-debug: use the correct functions for heap trace
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:11:42 +01:00
Adrian Bonislawski 5949148b94 coredump-reader: add info to notice user about non-critical warning
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski fc13cff773 coredump-reader: unnecessary comments removed
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski db7a3cfe1b coredump-reader: core header and registers printing separately
To separate them visually for better reading

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski 56682f4d79 coredump-reader: remove isatty() and fixed print when used with piped more
Now it is possible to pipe output with 'more'

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski 2e63ee2144 coredump-reader: make columncount dependent on verbose option in help
This is to notice user that columncount option will work only with verbose

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski 75466d8b2d coredump-reader: remove unnecessary separator + proper permissions
Two separators didnt work correctly

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Liam Girdwood 857fb13ea6 github: don't automatically assign features and bugs.
Assignment will be manual via GH issue page.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2019-04-04 11:19:02 +01:00
Xun Zhang cbbc6afd35 tools: test: topology: add argument to fix build error in test tplg
Add one argument in test-tone-playback.m4 to fix the building error
of insufficient PIPELINE_ADD arguments.

Signed-off-by: Xun Zhang <xun2.zhang@intel.com>
2019-04-03 21:39:42 +01:00
Adrian Bonislawski 2ec2c2101b panic: fix faulty panic handling
This commit will change the order of functions in panic_rewind() to fix SOF_IPC_PANIC_STACK in dump_stack().
Thats because arch_dump_regs() function is not able to make a 100% safe return

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-03 21:24:55 +01:00
Marcin Maka cbd3e07031 tools: doc: README converted to README.md
MD content is rendered by GH automatically when listing
tools folder.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2019-04-02 12:23:13 +01:00
Seppo Ingalsuo d7b36bf3e4 FIR EQ: Add support for timer based scheduling
This patch adds to copy() function capability to handle any number
of frames with circular source and sink buffers. The number of
frames to process is retrieved with new helper function
comp_get_copy_limits().

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-02 09:53:29 +01:00
Seppo Ingalsuo ddc383e9ef FIR EQ: Fix for pipeline PCM format handling plus code cleanup
This patch determines the frame format for component depending on
stream direction. In playback it is determined from source buffer
and in capture from sink buffer. The errors handling in prepare()
is improved.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-02 09:53:29 +01:00
Seppo Ingalsuo 7f617947f0 IIR EQ: Add support for timer based scheduling
This patch adds to copy() function capability to handle any number
of frames with circular source and sink buffers. The number of
frames to process is retrieved with new helper function
comp_get_copy_limits().

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-02 09:53:29 +01:00
Seppo Ingalsuo 5e487e013d IIR EQ: Fix for pipeline PCM format handling plus code cleanup
This patch determines the frame format for component depending on
stream direction. In playback it is determined from source buffer
and in capture from sink buffer. The errors handling in prepare()
is improved.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-02 09:53:29 +01:00
Seppo Ingalsuo 22ecaa41e1 Component: Add comp_get_copy_limits() function for copy() preparations
This patch adds into component.c/h an utility function and
a data structure to simplify audio component's copy() method code.

The do-nothing function pipeline_xrun() is added to avoid cmocka test
fail due to adding function comp_get_copy_limits().

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-02 09:53:29 +01:00
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