Commit Graph

2384 Commits

Author SHA1 Message Date
Janusz Jankowski 6c70f1a929 cmake: tests: support prebuilt Cmocka
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-31 20:22:30 +00:00
Pan Xiuli 3bc040271d scripts: replace alsa-lib with sof mirror
Use local version that still in review stage that we can have test
before final merge in upstream.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-31 20:20:51 +00:00
Marcin Maka 2234a6a43e
Merge pull request #918 from jajanusz/apl-up-defconfig
apl: use UP by default
2019-01-31 18:42:53 +01:00
Marcin Maka bb53de8b71
Merge pull request #928 from bkokoszx/logger-fopen-binary
logger: use fopen binary mode
2019-01-31 18:41:34 +01:00
Marcin Maka 7fb720a172
Merge pull request #914 from jajanusz/windows-build
cmake: build on windows
2019-01-31 14:29:52 +01:00
Bartosz Kokoszko e3cf1f2fed logger: use fopen binary mode
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-01-31 11:11:57 +01:00
Janusz Jankowski 82b305b727 apl: use UP by default
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-30 13:11:41 +01:00
Pan Xiuli 1a88947629 [skip ci]scirpts: add sof-target-install scripts
Install all FW and all TPLG files into
root@hostname/ip:/lib/firmware/intel folder.
install sof-logger and LDC files into root@hostname/ip:~/

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-30 12:00:10 +00:00
Jakub Dabek d0323f4d17 test: reinstated rest of memmory tests
Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2019-01-30 10:46:43 +00:00
Guennadi Liakhovetski c33c7bd0d6 rballoc: fix misleading zone names
rballoc() always allocates memory from the BUFFER zone, in fact the
"zone" argument for that function is redundant. Using any other zone
name with it is misleading. In fact all current calls to rballoc() use
the RUNTIME zone. Replace all uses with RZONE_BUFFER.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-30 10:45:18 +00:00
Guennadi Liakhovetski 018684072f alloc: try all buffer heaps
Currently the allocator only considers the first suitable heap for
buffer allocations. If it is full, no attempt is made to allocate
buffers from other heaps. This doesn't usually cause problems, because
on all platforms the first buffer heap is the largest and the following
buffer heaps are smaller and specialised (HP and LP). Still it is better
to try all heaps. This patch implements such an approach.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-01-30 10:45:18 +00:00
Janusz Jankowski dd87462402 cmake: crossplatform cc version get
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-30 08:46:04 +01:00
Janusz Jankowski 25e243b55f cmake: find python3
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-30 08:24:49 +01:00
Janusz Jankowski cdbe565651 cmake: use crossplatform copy
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-30 08:10:36 +01:00
Janusz Jankowski 5afec83728 rimage: use fopen binary mode 2019-01-30 08:05:36 +01:00
Janusz Jankowski 0cb4457cad rimage: use time_t for localtime
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-30 07:53:06 +01:00
Janusz Jankowski a8d33b2d36 rimage: cast size_t to correct format types
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-30 07:47:10 +01:00
Janusz Jankowski 05912c5639 rimage: fix for gcc8.1 -Wstringop-truncation
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-30 07:33:30 +01:00
Janusz Jankowski c82f759420 rimage: use local elf.h
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-30 06:52:35 +01:00
Janusz Jankowski ad3d864ca0 rimage: elf.h: use stdint 2019-01-30 06:47:41 +01:00
Janusz Jankowski 46a38ce4f1 rimage: import elf.h
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-30 06:43:09 +01:00
Janusz Jankowski 365b132e14 github: fix codeowners glob for @jajanusz
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-29 16:09:39 +00:00
Janusz Jankowski 7342811168 cmake: make CI builds verbose
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-29 12:38:48 +00:00
Jaska Uimonen ce3626201b dma: check for invalid channel in dma stop
if host params fails before dma channels are allocated
dma stop is called with invalid channel number and causes
eventually dsp oops.

Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
2019-01-29 12:38:28 +00:00
Keyon Jie 51f0821af0 pipeline: pipeline_comp_copy: return once errors happened
We should stop the pipeline copying once errors happened on any
component copying, here fix it.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2019-01-29 12:16:27 +00:00
Daniel Baluta a40e1fd009 rimage: Fix file_format.h include guard
This is most likely due to copy/paste.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2019-01-29 12:15:51 +00:00
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