Commit Graph

2261 Commits

Author SHA1 Message Date
Rander Wang f9c23243d6 topology: whl: refine topology for hda on whl
Fix the issue that ipc timeout when simutalously playback
and capture. Now in FW, playback and capture are supported
by different dai. So dai index should be different for playback
and capture in the same be dai, or playback would use the same
dai as capture

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-11-27 13:59:45 +08:00
Libin Yang 3362f9b339 host: release dw-dma channel when pcm free
On byt-like platform, sof should release dw-dma channel which is got
in set_params(). And in host_free(), it should not release any channel
as host doesn't get any channel in host_new()

Signed-off-by: Libin Yang <libin.yang@intel.com>
2018-11-27 10:26:15 +08:00
Liam Girdwood 443233c9a0
Merge pull request #623 from lbetlej/move_stack_to_pg_sram
Power up only subset of HP SRAM banks on FW init (CannonLake)
2018-11-26 20:12:41 +00:00
Liam Girdwood 25217514d7
Merge pull request #627 from bkokoszx/logger-abi-verification
tools: logger: logger abi verification
2018-11-26 20:10:50 +00:00
Bartosz Kokoszko 221064d463 tools: logger: abi verification addition
I've added abi_version verification. Be default logger verify: abi
in *.ldc file with logger abi version. Additionally, logger can verify
abi in "/sys/kernel/debug/sof/fw_version" (with -e flag) or in
ver_file (with -v ver_file) with logger abi version.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-11-26 18:06:55 +01:00
Bartosz Kokoszko 159cea157f tools: logger: removed uapi dependency
Logger now includes uapi directly from FW code.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-11-26 18:06:26 +01:00
Liam Girdwood 3e23513881
Merge pull request #584 from singalsu/dmic_ipc_add_params
IPC: DMIC: Add clock start and clock change time delay parameters
2018-11-26 14:59:24 +00:00
Liam Girdwood e610edca7c
Merge pull request #626 from ranj063/host-owner
github: add ranj063 as owner of src/host
2018-11-26 14:54:48 +00:00
Liam Girdwood d963e51379
Merge pull request #624 from cujomalainey/soft-merge
Soft merge
2018-11-26 14:53:54 +00:00
Slawomir Blauciak 46f2384bf6 dma: clean up by separating some of host/link specific code
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-11-26 15:13:28 +01:00
Seppo Ingalsuo d6fb9fd283 IPC: DMIC: Add wake_up_time and min_clock_on_time parameters
This patch adds the two parameters into DMIC configuration
IPC. The parameters will control DMIC HW muting in capture start
and ensure in capture stop that the clock has been kept active
sufficient long time. The implementation of these features is
done later.

The reserved[] vector is reduced by the amount of added
words. Also the ABI minor version is incremented.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-11-26 12:51:07 +02:00
Ranjani Sridharan 46b7cc9af4 github: add ranj063 as owner of src/host
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-11-25 20:03:39 -08:00
Curtis Malainey c0c8172535 Update Docker README for SOFT merge
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2018-11-24 23:38:51 -08:00
Curtis Malainey f8e3b126e1 Adjust tools build script for new path
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2018-11-24 23:30:33 -08:00
Curtis Malainey ebf4f52652 Merge SOFT into SOF
Merge SOFT in to reduce bisecting issues and header confusion for tools
2018-11-24 23:27:37 -08:00
Curtis Malainey 5b5888ce07 Move SOFT into sub folder for SOF merge
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2018-11-24 23:27:24 -08:00
Lech Betlej bb2663653d Power up only subset of HP SRAM banks on FW init (CannonLake)
In order to reduce power consumption in runtime only subset of HP SRAM
banks have to be powered. The PR covers 2 aspects:
1. Changed memory map to move stack up by 21 memory banks. Buffer heap
size was reduced from ~2.3MB to ~0.9MB.
2. Changed HP SRAM initialization to power up only needed banks and
properly check HW response.

Signed-off-by: Lech Betlej <lech.betlej@linux.intel.com>
2018-11-23 16:33:34 +01:00
Liam Girdwood 6e14892bb6
Merge pull request #622 from keyonjie/master
IPC: Xrun: fix Xrun stream id error issue
2018-11-23 12:43:10 +00:00
Keyon Jie 1b673c48a0 IPC: Xrun: fix Xrun stream id error issue
As API required, we need transfer stream host comp.id inside hdr cmd,
otherwise, host side can't get information about which stream has Xrun
happened, and reported error as "XRUN for unknown stream, msg_id 0".

This is similar to Position IPC, add comp.id into cmd to fix it.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2018-11-23 19:33:18 +08:00
Liam Girdwood 96d6c6bc0f
Merge pull request #621 from jajanusz/autoconf-make-roms-optional
autoconf: make roms build optional
2018-11-23 10:54:32 +00:00
Janusz Jankowski 64497f5f64 autoconf: make roms build optional
Use --enable-roms to build ROMs

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-11-23 11:46:38 +01:00
Liam Girdwood e8ef1f21c4
Merge pull request #617 from jajanusz/update-codeowners-makefiles
github: add jajanusz as owner of .ac .am files
2018-11-22 15:21:01 +00:00
Janusz Jankowski 051bfdd04c github: add jajanusz as owner of .ac .am files
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-11-22 15:36:22 +01:00
Liam Girdwood 77e96abba6
Merge pull request #616 from singalsu/add_codeowners_singalsu
CODEOWNERS: Add SRC; EQ, FIR, IIR, tone, and DMIC to singalsu
2018-11-22 14:29:41 +00:00
Liam Girdwood ad3f3e4f77
Merge pull request #134 from mwierzbix/helper-scripts-pretty-macro
shell-scripts: human-readable preprocessor output
2018-11-22 14:23:36 +00:00
Seppo Ingalsuo 87a044f583 CODEOWNERS: Add SRC; EQ, FIR, IIR, tone, and DMIC to singalsu
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-11-22 16:23:08 +02:00
Liam Girdwood 105dd406c6
Merge pull request #614 from tlauda/topic/fix-alloc-free
alloc: fix freeing of uncached pointers
2018-11-22 14:16:06 +00:00
Liam Girdwood 9ab0b6d9ae
Merge pull request #606 from thesofproject/lrg/topic/vm-rom
Build simple ROMs for CI testing of APL etc
2018-11-22 14:02:36 +00:00
Tomasz Lauda 754757ab17 alloc: fix freeing of uncached pointers
Fixes freeing of uncached pointers.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-11-22 13:55:23 +01:00
Liam Girdwood 8c20df92fa
Merge pull request #612 from thesofproject/github-owners-mwierzbix-add
github: added mwierzbix as owner of preproc
2018-11-22 11:29:28 +00:00
Liam Girdwood b0e3dbd5b4
Merge pull request #610 from lbetlej/fix_in_set_bits_macro
Fixes for macros used for bit masks creation.
2018-11-22 11:25:42 +00:00
Liam Girdwood 4d005d0b2f
Merge pull request #613 from xiulipan/pr/bytfix
Fix BYT issues
2018-11-22 11:23:52 +00:00
Liam Girdwood ace76bc6ec
Merge pull request #607 from xiulipan/pr/etracefix
trace: increase trace pos for each event
2018-11-22 11:05:37 +00:00
Pan Xiuli a9157a7d92 host: fix wrong usage of dma_channel_get
Need not to use stream tag for dw_dma as the comment said

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-22 18:32:59 +08:00
Pan Xiuli 44ea105c06 ipc: set timer delay to 0 for ipc_get_page_descriptors
Set the timer delay to avoid none init value broke the dma copy.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-22 18:32:59 +08:00
Pan Xiuli 8845e25f4a dma: enable legacy platform dmac
Add channel number to dmac in legacy platforms, and change the dma_init
function to fit the curruct code framework.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-22 18:32:59 +08:00
Michal Jerzy Wierzbicki a8e6dbdb80 github: added mwierzbix as owner of preproc
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-11-22 11:11:02 +01:00
Michal Jerzy Wierzbicki 044077cb86 shell-scripts: human-readable preprocessor output
Added script I used to read preprocessor output during preprocessor metaprogramming development. Normally it is highly unreadable, this tool makes things a wee bit easier.

Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-11-22 09:57:58 +01:00
Pan Xiuli ce17a23ab3 trace: increase trace pos for each event
position for trace->pos is not updated, make error trace only show the
newest one. Now update the pos to make all error trace can be seen.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-22 13:28:26 +08:00
Liam Girdwood 93540c74eb rom: ci: build xtensa ROM images for CI boot testing.
Some platforms like APL, CNL and ICL have a ROM that read the manifest
and loads the boot loader. This builds a simple ROM so that qemu can
boot APL, CNL and ICL firmware images for CI boot testing.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 20:58:45 +00:00
Lech Betlej 0cc0ab6061 Fixes for macros used for bit masks creation.
Bit mask setting macros for for specific parameters were expanded
in a way that was causing unexpected compiler behaviour. Specifically:
literal 1 was treated as 32bit integer ((1 << ((b_hi)-(b_lo) + 1)) -1)
was expanded to shift the 32bit integer by 32. ((1 << (31 - 0 + 1)) -1)
Macro MASK() was was missing left shift.

Signed-off-by: Lech Betlej <lech.betlej@linux.intel.com>
2018-11-21 19:38:51 +01:00
Liam Girdwood c0a77679d1 rom: linker: Add linker scripts for ROM platforms.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 17:22:21 +00:00
Liam Girdwood ca1e5d0bba build: clean: Don't delete .bin files during make clean
rom-<plat>.bin files need to stay around for testing after script builds.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 17:16:36 +00:00
Liam Girdwood 7a7934332f
Merge pull request #605 from thesofproject/revert-597-topic/sof-dev-fix-version-number
Revert "scripts: add local version number file"
2018-11-21 17:15:30 +00:00
Liam Girdwood d548d8f3a6
Revert "scripts: add local version number file" 2018-11-21 17:15:14 +00:00
Liam Girdwood 3ce2d070f3
Merge pull request #604 from thesofproject/lrg/topic/github
github: Add initial github owners/reviewers file.
2018-11-21 16:28:02 +00:00
Liam Girdwood feb850d4eb
Merge pull request #600 from thesofproject/lrg/topic/scripts
scripts: xtensa-build-all: Add support for > 1 makefile job
2018-11-21 16:27:18 +00:00
Liam Girdwood 2e8f293e28 github: Add initial github owners/reviewers file.
This file will help github to determine who will review PRs.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 16:25:57 +00:00
Liam Girdwood baf2806626 scripts: xtensa-build-all: Add support for > 1 makefile job
Add -j option to allow setting Makefile jobs.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 15:52:00 +00:00
Liam Girdwood 6da07a9116
Merge pull request #137 from keqiaozhang/icl-tplg
topology: add 4-ch dmic topology for ICL
2018-11-21 15:42:18 +00:00