Commit Graph

2487 Commits

Author SHA1 Message Date
Daniel Baluta e43fa6e44e tasks: audio: Fix compilation issue for static pipeline
After commit 425aa5e917 ("ipc: Add support for creating pipelines
dynamically") the prototype of init_static_pipeline function has
changed.

Use the correct prototype to call init_static_pipline to avoid
compilation failure when STATIC_PIPE is defined.

Fixes: 425aa5e917 ("ipc: Add support for creating pipelines dynamically")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2019-02-21 16:50:15 +00:00
Janusz Jankowski 5ccbab2659 tests: add panic symbols for alloc
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-19 16:52:10 +00:00
Janusz Jankowski c5d01530af tests: fix idc for smp
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-19 16:52:10 +00:00
Guennadi Liakhovetski 4290e2d52a wait: move most functions from the header to a new .c file
Move large functions from src/include/sof/wait.h to src/lib/wait.c to
avoid building them multiple times.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-02-19 16:52:10 +00:00
Guennadi Liakhovetski 5c8f1eb249 task: move most functions from a header to a new .c file
Move large functions from src/arch/xtensa/include/arch/task.h to
src/arch/xtensa/smp/init.c to avoid building them multiple times.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-02-19 16:52:10 +00:00
Guennadi Liakhovetski 2dcc3f79f7 panic: move most functions from the header to a .c file
Many functions in src/include/sof/panic.h are too large to be inlined
and repeated every time the header is included. Move them out to
src/lib/panic.c

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-02-19 16:52:10 +00:00
Guennadi Liakhovetski 27fbd8c5ec idc: move code from a header to a .c file
src/arch/xtensa/smp/include/arch/idc.h has way too much code for a
header, it is included by platform/idc.h on various platforms, and
that header in turn is included by bultiple .c files, which builds
the code multiple times into the firmware. Move it to a C file.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2019-02-19 16:52:10 +00:00
Tomasz Lauda 41554a0318 pipeline: do not trigger across pipelines
Changes flow to trigger only current pipeline.
Stops on meeting component from the other pipeline.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-19 16:40:21 +00:00
Tomasz Lauda 88aa5542a4 ipc: fix getting source component
Fixes getting source component, when it's the one
connected to the other pipeline.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-19 16:28:05 +00:00
Rander Wang e603bf04af ssp: bdw: refine ssp setting for bdw
(1) set PSP according to APL
(2) we don't need to decrease one for TFT&RFT because
   SSCR1_TFT and SSCR1_RFT do this.

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2019-02-19 15:52:32 +00:00
Rander Wang 871e01d238 dw-dma: BDW: fix noise issue on BDW
When setting sar & dar registers in GP DMA, src address
and dest address should be masked for DMA engine to
identify memory space.

On BDW, the memory address in dsp is composed by 6 hex-number
like 0xABCDEF, and the address on BYT is a style of 0xFFABCDEF.
So it is correct on BYT even without mask.

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2019-02-19 15:39:52 +00:00
Rander Wang 3b624a34ef dma: BDW: add id field in dma engine
It is missed on BDW.

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2019-02-19 15:35:27 +00:00
Tomasz Lauda dcd825b923 pipeline: enable copy of connected pipelines
Enables copy of connected pipelines if the pipelines
were set to have the same scheduling component.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-18 17:34:05 +00:00
Tomasz Lauda 506f5a78d9 arch: move xtos_exc_handler_table to bss
Moves xtos_exc_handler_table to bss for SMP arch.
It's modified at runtime, so shouldn't be kept
in data, which is supposed to be read-only.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-18 17:21:54 +00:00
Ranjani Sridharan 2b4467c007 topology: whl: add topology for whl with rt5682
Add topology for WHL with RT5682. This will be merged with
sof-cml-rt5682 in the future to avoid maintaining 2 files
with just the difference in SSP port numbers.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2019-02-18 16:29:47 +00:00
Ranjani Sridharan abc0d2fc6a topology: cml: change SSP port num for rt5682
The CML board has the rt5682 connected to SSP0 and the
machine driver defines the dai link for the headset
with the name "SSP0-codec" too. So change the topology
file accordingly.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2019-02-18 16:29:47 +00:00
Daniel Baluta fb545a3684 task: Allow conditional compilation for low priority tasks
On i.MX we have only two software interrupts available. One is used
as PLATFORM_SCHEDULER_IRQ and the other one for PLATFORM_IRQ_TASK_HIGH.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2019-02-14 18:30:47 +00:00
Seppo Ingalsuo 833cb76175 DMIC: Add Kconfig options to reduce driver tables size
This patch adds three configuration profiles DMIC_FIR_LOW_MEMORY,
DMIC_FIR_FULL, and DMIC_FIR_CUSTOM.

The first is recommended for systems with need for only 48 kHz
and 16 kHz sample rates support with default 2.4 MHz microphone
clock. It can work with some other configurations also but if
driver rejects are seen for desired parameters the full or custom
configuration should be used.

The full configuration includes all defined FIR coefficients for
all supported decimation factors to support several rates between
8 - 96 kHz.

Custom set allows to select all decimation factors separately.

The rename of CONFIG_DMIC to CONFIG_CAVS_DMIC caused update need
to platform defconfig files and memory configuration header files.
There are no other changes but the macro rename for them.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-02-14 18:01:47 +00:00
Janusz Jankowski b7fc937e04 scripts: sof-target-install update for cmake tools
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski cc16d6d824 scripts: update build-tools.sh for cmake
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski e57b1346db cmake: tools: README
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski 9fb2097e52 cmake: tools: install targets
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski dff70c4490 cmake: tools: remove autotools
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski 1704bfcb95 cmake: tools: test
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski 67597453ec tools: tplg-build custom output dir
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski 44c0ce7388 cmake: tools: topology
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski f8f71f5938 cmake: tools: eqctl
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski 2728dae14c cmake: tools: logger
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski cfa10b808d cmake: CMakeLists for tools
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Tomasz Lauda 71b4f1d8c1 volume: refactor volume to support variable processing sizes
Refactors generic and HiFi3 volume processing implementations
to support variable processing sizes. The volume_copy method
will also be refactored in the near future to take advantage
of this feature.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-14 17:15:20 +00:00
Tomasz Lauda a3eaaf8b2d buffer: add helper function for processing wrapped buffer
Adds helper function for easier processing of wrapped buffer.
Processing modules should switch to this function instead of
directly using read and write pointers of buffer.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-14 17:15:20 +00:00
Tomasz Lauda 2a863143e8 component: refactor set state handling
Changes component set state handling. If component
already has the desired state, then the state propagation
will stop at that component. This allows for connecting
multiple source pipelines to one sink pipeline and
properly handling params and prepare calls.
Also removes unit tests, which don't make sense anymore.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-13 11:37:30 +00:00
Janusz Jankowski 779237837c cmake: meu: add option for openssl path
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-13 10:17:25 +00:00
Bartosz Kokoszko f5a242badc kconfig: cavs_ver: using cavs_ver in ipc.c
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-02-12 19:01:37 +00:00
Bartosz Kokoszko 3f4fb50d8e kconfig: cavs_ver: using cavs_ver in interrupt.c
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-02-12 19:01:37 +00:00
Bartosz Kokoszko 28d156d16d kconfig: add CAVS_VERSION_* symbols for CAVS platforms
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-02-12 19:01:37 +00:00
Janusz Jankowski 8d064e9ca3 cmake: do not use stdin for ld script
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-12 14:54:11 +00:00
Pan Xiuli 8c13fce6e5 [skip ci]scripts: fix a typo in name of targe install scripts
Change the scipts name.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-02-11 11:54:52 +00:00
Pan Xiuli aa172da919 [skip ci]scirpts: update target install
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-02-11 11:54:52 +00:00
Janusz Jankowski a4f666527e cmake: add build counter
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-11 11:53:32 +00:00
Janusz Jankowski 46730e89c6 cmake: refactor version.h rule
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-11 11:53:32 +00:00
Tomasz Lauda 72871397f2 dai: remove unused defines
Removes unused defines from dai component.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-11 11:49:47 +00:00
WojciechX Wittbrodt 8483480381 owners: add members of FW val team to uapi code
Signed-off-by: WojciechX Wittbrodt <wojciechx.wittbrodt@intel.com>
2019-02-09 22:21:29 +00:00
Tomasz Lauda daeafb197c dai: add dma_buffer to dai_data
Adds currently used dma_buffer to dai_data.
Now it's much easier to get buffer and also it's aligned
with what is done for host component.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-02-07 21:22:25 +00:00
Janusz Jankowski 075ccfe7ce dai: remove ssp loopback mode
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-07 21:14:15 +00:00
Pierre-Louis Bossart cfcdce9550 kmod_scripts: improve list of devices
HDaudio support was missing, along with a slew of codecs
Also add a log on module insertion

Tested on Up2 with HDMI&PCM512x, and CHT w/ rt5645

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2019-02-07 21:13:43 +00:00
Janusz Jankowski 9a4a822309 cmake: add savedefconfig target
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-07 21:12:39 +00:00
Janusz Jankowski 221cdfaf8a cmake: add alldefconfig target
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-07 21:12:39 +00:00
Janusz Jankowski d98c9d5a8b cmake: add olddefconfig target
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-07 21:12:39 +00:00
Janusz Jankowski ba7d875086 cmake: refactor kconfig targets
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-07 21:12:39 +00:00