~canonical-hwe-team/hwe-next/+git/sof:fix_level_dbfs

Last commit made on 2020-09-30
Get this branch:
git clone -b fix_level_dbfs https://git.launchpad.net/~canonical-hwe-team/hwe-next/+git/sof

Branch merges

Branch information

Name:
fix_level_dbfs
Repository:
lp:~canonical-hwe-team/hwe-next/+git/sof

Recent commits

266df23... by Seppo Ingalsuo <email address hidden> on 2020-09-30

Tools: Test: Fix for dBFS level measure for muted audio

The log() function returns -Inf for level measure for stream of
digital zeros. It is correct but requires extra handling in the
upper level functions to avoid unnecessary tests fails. Adding of
offset 1e-20 results to -196.99 dBFS be the smallest possible
reported value. The function remains sufficient for all audio
measurements with 16 - 32 bit formats.

The license text is also updated to current version.

Signed-off-by: Seppo Ingalsuo <email address hidden>

d9eb16a... by Marc Herbert <email address hidden> on 2020-09-25

cmake: add warning when git submodule changes are found

As incredible as it sounds, some people run neither "git status" nor
"git diff" every few minutes and not even when their build fails. There
has been reports that they're puzzled when they miss a required
submodule update. This is an attempt to draw their attention based on
the assumption that they pay more attention to the CMake logs.

Signed-off-by: Marc Herbert <email address hidden>

96474cd... by Adrian Bonislawski <email address hidden> on 2020-09-25

ext_man: prevent removal of cavs-specific element

This patch will allow to keep cavs-specific elements

Signed-off-by: Adrian Bonislawski <email address hidden>

fd398c9... by Curtis Malainey <email address hidden> on 2020-09-23

cmake: allow testbench to build with clang

We need clang support for the testbench therefore the following changes
are needed

remove -ftree-vectorizer-verbose since its deprecated in gcc and not
supported in clang

remove =3 from -Wimplicit-fallthrough=3 since 3 is the default level
anyways

Signed-off-by: Curtis Malainey <email address hidden>

52e82f4... by Karol Trzcinski <email address hidden> on 2020-09-25

logger: Refactor fread() error check in logger_read()

fread() returns number of readed blocks, 0 when nothing read.
Comparison fread return value with "!ret" is quite misleading -
may suggests that negative value is returrned after fail.

Swapping if content makes flow easier, then first is error check,
and eventyally return statement, next try to reopen file.
It allows to check error condition only in one place, so there
won't be possibility to use different error checks in subsequent
stages (like ferror() and errno).

in_file alignment with trace entry size check has been added,
to warn about corrupted file.

Signed-off-by: Karol Trzcinski <email address hidden>

1e26ff4... by Karol Trzcinski <email address hidden> on 2020-09-25

logger: Use 'rb' mode for freopen

Windows platform needs "rb" mode to read binary file,
otherwise after read 0x1A EOF will be. See:
https://stackoverflow.com/questions/11717120/unexpected-return-value-from-fread

Signed-off-by: Karol Trzcinski <email address hidden>

adc447e... by Karol Trzcinski <email address hidden> on 2020-09-24

logger: Check fprintf return value for trace format text

log format text comes from ldc file (may be invalid),
so error check is needed. Don't treat it as fatal error,
because this error may not impact following logs, when
formatting text is root cause of the issue.

Signed-off-by: Karol Trzcinski <email address hidden>

5eb9c49... by Karol Trzcinski <email address hidden> on 2020-09-24

logger: Log fread error only when it happened

fread may return 0 when some error occurred or nothig has been reded.
Moreover errno may not be set on Windows plaform, use ferror
instead. See:
https://www.gnu.org/software/gnulib/manual/html_node/fread.html

Fixes: 337afc4f3809: ("logger: add error message when reading sof/etrace instead of sof/trace")

Signed-off-by: Karol Trzcinski <email address hidden>

d477a83... by Bartosz Kokoszko <email address hidden> on 2020-09-23

pipeline: adds missing buffer locks/unlocks

In case of changing specific values in buffer structure,
we should use buffer locks an unlocks macros in order
to retain multicore coherence.

Signed-off-by: Bartosz Kokoszko <email address hidden>

89acc5e... by Jaska Uimonen <email address hidden> on 2020-09-25

docker-run.sh: pass-through PRIVATE_KEY_OPTION

Pass PRIVATE_KEY_OPTION environment variable to docker to be able to
define external key for signing.

Suggested-by: Marc Herbert <email address hidden>
Signed-off-by: Jaska Uimonen <email address hidden>