Commit Graph

2358 Commits

Author SHA1 Message Date
Daniel Baluta f4900e7dcd rimage: Use fw.h instead of duplicating the code
This is very useful when updating one of the types in UAPI
because with the current implementation one needs to be careful
to also update file_format.h

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2019-01-29 12:15:51 +00:00
Daniel Baluta 663fe669a9 uapi: fw: Add snd_ prefix to types
This aligns uapi/user/fw.h with the fw.h file used by Linux
and also prepares this header to be directly used by rimage.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2019-01-29 12:15:51 +00:00
Marcin Maka cf7bfd929a
Merge pull request #908 from mmaka1/fix-dox-filenames
dox: fixed refactored file names, removed dox warns
2019-01-29 12:28:05 +01:00
Marcin Maka 43aa1cb683
Merge pull request #907 from mmaka1/upd-cmake-gitignore
cmake: doc build files added to gitignore
2019-01-29 12:16:15 +01:00
Marcin Maka 33e7cd3178
Merge pull request #906 from jajanusz/rm-rimage-build
scripts: remove rimage-build.sh
2019-01-29 12:10:14 +01:00
Marcin Maka 53a8b1dba8 dox: fixed refactored file names, removed dox warns
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2019-01-29 11:45:18 +01:00
Marcin Maka e48b67eddf cmake: doc build files added to gitignore
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2019-01-29 11:43:56 +01:00
Rander Wang a5d32b4c3a topology: hda: fix a hda bug when pipeline is in 24bit
sof audio pipeline with the format of 24bit doesn't
work on HDA platform. It is caused by sample data layout. SOF supports
S24_LE, and each sample format is like pattern of 0ddd, d stands for
data. Samples are padded with 0‟s at the MSB.

Link dma copys samples directly to hda bus, but hda bus requires samples
layout like pattern of ddd0. Samples are padded with 0‟s at the LSB to
left justify the sample within the container.

Now there is a volume at the end of hda pipeline. We only need to
convert dai type from S24_LE to S32_LE to make volume convert hda data to
correct format

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2019-01-29 09:53:39 +00:00
Rander Wang b46740523b topology: hda: delete sof-whl-hda.m4
It is useless now and sof-hda-generic.m4 would be used by WHL.

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2019-01-29 09:53:39 +00:00
Janusz Jankowski 79e0d67fdb scripts: remove rimage-build.sh
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-28 13:35:29 +01:00
Janusz Jankowski f9e5bba39d gitignore: add cmake files
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-28 10:43:05 +00:00
Janusz Jankowski 4fc3af5e04 cmake: prevent in-source build
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-28 10:43:05 +00:00
Liam Girdwood 1f5a965711 platform: skl: Add memory map for SKL/KBL platforms
Add memory map and linker script adjustments for SKL and KBL platforms.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2019-01-26 14:27:44 +00:00
Liam Girdwood 6be5ccd936 reset: xtos: Add support for SKL/KBL reset flow.
Make sure correct CONFIG options are selected.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2019-01-26 14:27:44 +00:00
Janusz Jankowski 573d1faa18 cmake: fix ld script dependency
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-25 19:28:42 +00:00
Lech Betlej 962fb6115c pm: clean up of power_down.s files
Comments and files decriptions updated.

Signed-off-by: Lech Betlej <lech.betlej@linux.intel.com>
2019-01-25 19:28:12 +00:00
Marcin Maka 8fe363041b cmake: .x generation simplified
Now runs with cmake for Windows. Could not spawn the process reading
from the pipe with the cmake's path formatting.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2019-01-25 19:27:55 +00:00
ArturX Kloniecki c098d091ea SSP: Properly calculate frame end padding for 24/32 transport.
When calculating frame_end_padding with tdm_per_slot_padding_flag high,
imporper data size was used, yielding configuration errors.

Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2019-01-25 16:10:20 +00:00
ArturX Kloniecki 4405cd4721 GPDMA: Fix per-channel IRQ handling of GPDMA for non-APL platforms.
Fixed non-APL specific handling of per-channel IRQs from GPDMA.
APL has per-channel IRQs handled by xtos, so similar functionality
was implemented for other platforms. Bitmask for tracking usage of
IRQs was added to dma structure, for non-APL only.

Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2019-01-25 16:04:19 +00:00
Tomasz Lauda dec5c62bd1 dw-dma: use chan instead of p[chan]
Fixes DMA channel usage.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-01-25 15:59:10 +00:00
Janusz Jankowski 621e8702cc cmake: use cmocka tiny config
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-25 15:57:51 +00:00
Janusz Jankowski 85457b0c16 cmake: doc: specify no languages
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-25 15:55:39 +00:00
Bartosz Kokoszko fc19ee4208 cavs: ipc: platform_ipc_init refinement
Removing the allocation of page table buffer for cavs platforms.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-01-25 15:54:56 +00:00
Slawomir Blauciak 3dbd1fb597 pipeline: add a flag for FW xrun recovery disabling
Add a flag NO_XRUN_RECOVERY to disable the FW internal xrun recovery,
make it to false by default.

Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2019-01-25 15:39:10 +00:00
Tomasz Lauda 724d267413 dw-dma: add start delay for timer driven capture streams
Adds start delay for timer driven capture streams.
External interface is enabled after DMA, so we need to compensate it.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-01-24 15:41:07 +00:00
Keyon Jie 905bad4252 scripts: xtensa-build-all: Add support to force build UP Arch
Add -u option to allow force building xtensa(up) ARCH on platforms which
usually building xtensa-smp by default.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2019-01-24 15:32:27 +00:00
Marcin Rajwa 26a6541b1b GDB: Initialized from IPC handler + generalized debug addresses.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-01-24 15:31:57 +00:00
Marcin Rajwa c30f2fc22b GDB: Adjusted to new build system.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-01-24 15:31:57 +00:00
Marcin Rajwa cfdfcf5661 GDB: Added packet parser.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-01-24 15:31:57 +00:00
Marcin Rajwa 9a3555e2b7 MEMORY: Enabled LP SRAM for ICL platform.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-01-24 15:31:30 +00:00
Rander Wang d53466ad7e IPC: port PM D3 entry fixes to CNL, WHL & CML
On CNL, we need to set two registers: IPC_DIPCTDR and IPC_DIPCTDA

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2019-01-24 15:30:46 +00:00
Liam Girdwood cfaaa7ee53
Merge pull request #880 from plbossart/fix/kmod_scripts
kmod_scripts: fix dependencies and add delays
2019-01-24 08:33:48 +00:00
Liam Girdwood 0cd5fb0629
Merge pull request #878 from jajanusz/update-cmocka-git
cmake: update cmocka git
2019-01-24 08:17:44 +00:00
Liam Girdwood 570ce06599
Merge pull request #877 from dbaluta/master
drivers: Remove unused unused host_msg field
2019-01-24 08:12:16 +00:00
Daniel Baluta 7c37501568 drivers: Remove unused host_msg field
This is legacy and was used to keep current
message from host.

It is now unused so remove it. Notice that we
also remove temp var msg.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2019-01-24 00:20:08 +02:00
Janusz Jankowski 8051fe393c readme: update for cmake
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-23 20:11:00 +00:00
Guennadi Liakhovetski 4593e60b82 sue: fix several alignment issues
Fix several indentation violations in memory.h

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 19:58:02 +00:00
Guennadi Liakhovetski d4004b4c38 schedule: fix a typo in a comment
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 19:58:02 +00:00
Guennadi Liakhovetski bc55ff2172 interrupt: (cosmetic) move a spin-lock, remove function declarations
Simple variable declarations with no initialisation don't need to
be protected, move them out of a spin-lock. Also remove superfluous
static function declarations.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 19:58:02 +00:00
Guennadi Liakhovetski 4ff218b482 sue: use a symbolic name for a task priority
Use TASK_PRI_MED instead of a hardcoded 0 for the IPC task on Sue
Creek.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 19:58:02 +00:00
Guennadi Liakhovetski acad9bbf94 work: make work_new_queue() static
work_new_queue() is never called outside of work.c, make it static.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 19:58:02 +00:00
Guennadi Liakhovetski 5f23dac791 bootloader: simplify preprocessor conditionals
Use #elif to select between platforms in the bootloader.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 19:58:02 +00:00
Janusz Jankowski 97f3b70d65 cmake: update cmocka git
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-23 20:31:24 +01:00
Pierre-Louis Bossart 7f7e48e27e kmod_scripts: fix dependencies and add delays
dependencies are incorrect due to kernel changes

also add 6s delay after insert to let userspace complete its tasks and
go back to idle

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2019-01-23 12:56:21 -06:00
Guennadi Liakhovetski 44aa1193e7 dw-dma: (cosmetic) remove superfluous type-casts
In C casts between "void *" and any other pointers aren't needed.
Remove several occurrances.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 17:08:03 +00:00
Guennadi Liakhovetski 9aff15f6cc dw-dma: (cosmetic) eliminate a goto
Instead of jumping out of a loop with a "goto" use break and test
the loop exit reason.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 17:08:03 +00:00
Guennadi Liakhovetski 7fd51425f6 dw-dma: (cosmetic) simplify assignments
Replace multiple occurrances of assignment sequences like
	a |= x1;
	a |= x2;
with a simpler
	a |= x1 | x2;

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 17:08:03 +00:00
Guennadi Liakhovetski bc5c1b49c8 dw-dma: (cosmetic) remove redundant variable initialisations
Remove several occurrances of redundant variable initialisations
and remove some trivial variables, that are only initialised
and used once without ever being changed.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 17:08:03 +00:00
Guennadi Liakhovetski 25739de839 dw-dma: (cosmetic) use pointer shortcuts
Simplify the DW DMA driver by using channel and LLI pointers instead
of repeating the same pattern multiple times within functions.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-23 17:08:03 +00:00
Tomasz Lauda d918f1b3d0 pipeline: refactor whole pipeline component
Refactor the whole pipeline component:
- one method to handle both upstream and downstream walk
  across the pipeline graph,
- code deduplication,
- cuts pipeline implementation size by half.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-01-23 17:07:10 +00:00