Commit Graph

1462 Commits

Author SHA1 Message Date
Curtis Malainey ea4cd1fbd4 Add link to unit testing documentation
Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2018-09-05 14:57:37 -07:00
Curtis Malainey 5c6b62ef8e Add docs link to README
Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2018-09-05 14:53:24 -07:00
Curtis Malainey 5a1f693912 Fix broken LICENSE link
Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2018-09-05 14:51:19 -07:00
Curtis Malainey c52dc7ce48 Move towards modern markdown README
Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2018-09-05 14:40:08 -07:00
Liam Girdwood 62bae33296
Merge pull request #311 from dabekjakub/pipeline_deref_fix
pipeline: fixed possible null dereference
2018-09-05 15:13:08 +01:00
Jakub Dabek b6f9963782 pipeline: fixed possible null dereference
Added null check for possible null dereference.

Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2018-09-05 11:46:40 +02:00
Liam Girdwood ca704324ef
Merge pull request #308 from tlauda/topic/atomic-return-val
atomic: atomic_add and atomic_sub return value
2018-09-05 09:12:33 +01:00
Liam Girdwood bde4bafb07
Merge pull request #309 from dabekjakub/pipeline_comp_disconect_list
pipeline: list delete on comp disconnect
2018-09-05 09:11:27 +01:00
Jakub Dabek e735bd1376 pipeline: list delete on comp disconnect
Changed list delete function used after comp disconection
so it will return true on list_is_empty call.

Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2018-09-05 09:56:03 +02:00
Tomasz Lauda da6e02e556 atomic: atomic_add and atomic_sub return value
Makes atomic_add and atomic_sub functions to return
value after change.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-05 09:47:56 +02:00
Liam Girdwood d42a95114a
Merge pull request #202 from mwierzbix/unitTest-lib-memset
test: lib/memset: Added unit tests for lib/memset.
2018-09-04 11:52:58 +01:00
Liam Girdwood 50d707c3ce
Merge pull request #305 from singalsu/eq_iir_enable_nonconfigured_proposal
EQ IIR: Enable non-configured usage plus clean up traces texts
2018-09-04 11:52:35 +01:00
Michal Jerzy Wierzbicki 73fe559435 lib/strcheck: added unit tests for lib/memset, lib/memcpy.; lib/bzero: merged into lib/strcheck;. .gitignore: added ommission of test build files.
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-09-04 12:20:48 +02:00
Liam Girdwood 15deac95a4
Merge pull request #306 from tlauda/topic/child_int_disable
interrupt: mask child interrupt immediately
2018-09-04 10:24:18 +01:00
Tomasz Lauda 7322e29f8e interrupt: mask child interrupt immediately
Masks child interrupt as soon as it's disabled.
We shouldn't wait for the parent to have no children.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-04 11:11:35 +02:00
Seppo Ingalsuo cac593f890 EQ IIR: Harmonize trace texts with other components
The trace codes those start with an e get also highlighted with red
color to mark them as errors visually so better to avoid that since
these events are for normal operation.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-09-04 11:24:46 +03:00
Seppo Ingalsuo 3b52f29425 EQ IIR: Allow run the EQ in bypass mode when not configured
This patch changes the behaviour in prepare() such that we do not
return an error if the IIR coefficients have not been set. It's
better to start in bypass mode since this is valid usage for EQ
when transducer EQ or effect does not need to be activated.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-09-04 11:24:46 +03:00
Liam Girdwood 4c0b1d4712
Merge pull request #303 from dabekjakub/list_delete
list: added list_item_del_init
2018-09-03 19:32:08 +01:00
Jakub Dabek 471db48e1a list: added list_item_del_init
Added function that will delete and reinitialize list.

Reinitialized lists show up as empty unlike deleted with
list_item_del.

Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2018-09-03 16:40:18 +02:00
Liam Girdwood 6af5984cb9
Merge pull request #302 from tlauda/topic/ssp_wait_stop
ssp: cavs: make sure that SSP FIFO is empty
2018-09-03 14:37:46 +01:00
Liam Girdwood bc2b2863fa
Merge pull request #289 from singalsu/fix_eq_ptr_dereference_proposal
EQ: Add check for configuration IPC and handle possible null pointers
2018-09-03 14:37:01 +01:00
Liam Girdwood c28a210732
Merge pull request #301 from tlauda/topic/alloc_free_block
alloc: fix free_block
2018-09-03 14:36:42 +01:00
Liam Girdwood 968b0c7191
Merge pull request #200 from mwierzbix/unitTest-lib-rstrlen
test: lib/rstrlen: Added unit tests for lib/rstrlen.
2018-09-03 13:45:18 +01:00
Tomasz Lauda 344085d995 dai: remove wait on stop
Removes wait on stop, as it's not needed.
Also this change fixes problems with sending IPC as
wait function lowers interrupt level, while IPCs are
now executed on irq task level.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-03 13:55:04 +02:00
Tomasz Lauda 992f081136 ssp: cavs: make sure that SSP FIFO is empty
This patch implements delay before SSP stop
to make sure, that for transmitting the FIFO is empty
and for receiving the FIFO provides the real status.
Also it clears transmit underrun.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-03 13:53:05 +02:00
Tomasz Lauda d8cc1e0d99 alloc: fix free_block
Fixes free_block for memory allocated in the last block map.

Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-09-03 11:17:03 +02:00
Liam Girdwood 9d552d532b
Merge pull request #290 from jajanusz/icelake-initial
icelake: initial configuration
2018-09-02 15:53:07 +01:00
Janusz Jankowski 252d7fec4c scripts: add icl to xtensa-build-all.sh
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 19:53:17 +02:00
Janusz Jankowski c0f156b2ba icl: initial support
Added icelake platform to platforms.
Updated rimage to support icelake.
Updated autoconf and automake files.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 19:52:48 +02:00
Seppo Ingalsuo 5da0456465 EQ FIR: Bug fix SOF_CTRL_CMD_BINARY handling in fir_cmd_get_data()
This patch fixes the messed up code to properly return back the
equalizer configuration binary. The previous version looked more
like a mix of set_data() and get_data() also contained a null pointer
use risk.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-08-31 16:15:48 +03:00
Seppo Ingalsuo 74b0e11431 EQ IIR: Add check to configuration IPC and potential null pointer use
This patch adds check that EQ confiquration binary contains at least
one channel in channel map. Also move the configuration size get to
be done after pointer has been checked for null.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-08-31 16:15:48 +03:00
Janusz Jankowski a53d982e16 rimage: change feature mask from 0x1f to 0xff for ICL and later
Icelake needs FF to work, it doesn't look to break it for older platforms,
so there is no need for some ifdefs, we can make it 0xff for all.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 15:05:55 +02:00
Liam Girdwood 35ed394a26
Merge pull request #285 from jajanusz/drivers-refactor
platform: refactor: move clock, interrupt and timer to drivers
2018-08-31 13:57:59 +01:00
Liam Girdwood 7101eef5a2
Merge pull request #288 from singalsu/fix_dmic_alloc_proposal
DMIC: Handle possible null pointers from rzalloc()
2018-08-31 13:10:55 +01:00
Janusz Jankowski 56cda383c2 drivers: refactor: move timer from platform to drivers
+ Indents for 'CHECK: Alignment should match open parenthesis'

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 14:10:37 +02:00
Janusz Jankowski abb2591abd platform: refactor: unify */platform/timer.h functions and variables
For cnl&apl removed platform_timer_register from public api
and made it static.
For byt&hsw moved platform_timer to platform.h
(just like it is for cnl&apl).

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 14:10:37 +02:00
Janusz Jankowski b164895386 drivers: refactor: move clk from platform to drivers
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 14:10:37 +02:00
Janusz Jankowski 0d6425e614 drivers: refactor: move interrupt from platform to drivers
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 14:10:37 +02:00
Janusz Jankowski b7ef91ebc1 platform: refactor: move interrupt functions from platform.c
Moved platform_interrupt_* functions from platform.c to interrupt.c
to match CNL&APL. Updated headers for BYT&HSW to have the same functions
declarations as CNL&APL.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 14:10:37 +02:00
Janusz Jankowski b67c535301 drivers: refactor: create <vendor>/<family> filetree
Split files into appropriate folders.
Added makefiles to not break build.
Fixed checkpatch errors in dw-dma and baytrail/ssp.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 14:10:37 +02:00
Seppo Ingalsuo 38af5ef4de DMIC: Handle possible null pointers from rzalloc()
This patch adds the missing handling of null pointers for the case
if memory allocation would fail.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-08-31 14:48:01 +03:00
Liam Girdwood 40e802dda1
Merge pull request #287 from jajanusz/host-warn-fix
host: fix for uninitialized pointers
2018-08-31 10:10:37 +01:00
Janusz Jankowski 5808eac22f host: fix for uninitialized pointers
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 10:57:23 +02:00
Liam Girdwood de586a2147
Merge pull request #283 from singalsu/fix_host_build_proposal
Host platform library: Fix compilation after git merge from next branch
2018-08-31 09:45:54 +01:00
Seppo Ingalsuo 6cadf5b084 Host platform library: Fix compilation after git merge from next branch
Most of the errors are due to missing macros and header files. This
patch adds a number of minimal new header files into
src/arch/host/include/arch and src/library/include/platform.

The testbench ipc init is updated with previous changes of removed ipc
struct fields.

The testbench memory freeing code is updated with ipc struct change to
access comp_list.

The FIR EQ allocated pointer address tracing is removed since it is not
critical to trace. The pointer casting caused a compilation error for
host.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-08-30 16:40:29 +03:00
Liam Girdwood f10b52f5e4
Merge pull request #281 from jajanusz/fix-ut
test: cmocka: fix pipeline tests, disable alloc tests
2018-08-30 12:35:00 +01:00
Janusz Jankowski 8d5382162d test: cmocka: fix pipeline tests, disable alloc tests
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-30 13:01:25 +02:00
Liam Girdwood 9944905a7c Merge remote-tracking branch 'gh/glk-003-drop-stable' 2018-08-29 16:48:29 +01:00
Liam Girdwood 5d469b42a7 Merge remote-tracking branch 'gh/next' into next-master2 2018-08-29 16:42:29 +01:00
Liam Girdwood 0ead9e762b
Merge pull request #275 from mmaka1/glk-2nd-pl
dma: hda: 2nd playback with existing topology fixed
2018-08-29 16:19:05 +01:00