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

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

Branch merges

Branch information

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

Recent commits

e4cba04... by Pin-chih Lin <email address hidden>

sof: drc: Implement delay only when DRC disabled

Delay the input sample only and don't do other processing. This is used when
the DRC is disabled. We want to do this to match the processing delay of other
bands in multi-band DRC kernel case.

Signed-off-by: Pin-chih Lin <email address hidden>

b0e256a... by Pin-chih Lin <email address hidden>

tools: testbench: Add DRC component test

Signed-off-by: Pin-chih Lin <email address hidden>

4196ab0... by Pin-chih Lin <email address hidden>

tools: tune: Add tools to generate ctrl bytes for DRC

This commit adds the tools to generate the control bytes for the
drc component. To generate the control bytes, run the example_drc.m
script.

To tweak the parameters modify the values in example_drc.m and run it.

This is still WIP. A fixed set of coefficients is temporarily used in
drc_generate_config.m

Signed-off-by: Pin-chih Lin <email address hidden>

1a4da5c... by Pin-chih Lin <email address hidden>

tools: topology: Add DRC topology files

This commit adds the topology files for the drc component.
The control bytes are generated by the tools in tune/drc.

Signed-off-by: Pin-chih Lin <email address hidden>

8a3ca14... by Pin-chih Lin <email address hidden>

sof: drc: Add DRC component with floating-point calculations

This commit adds Dynamic Range Compression (DRC) to the list of SOF
components. DRC in audio processing is intentional to reduce the
volume of loud sounds and amplify the silent sounds as compressing an
audio signal's dynamic range.

This is the intermediate implementation with floating-point calculations.

Signed-off-by: Pin-chih Lin <email address hidden>

7722365... by Karol Trzcinski <email address hidden>

logger: Fix memory leak at first filter append

For first run, allocated memory pointer has been written twice to
config->filter_config but freed only once - memory leak.

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

1240a8b... by Marc Herbert <email address hidden>

logger: stop ignoring return value of ‘freopen’

Reported by VERBOSE=1 CMAKE_BUILD_TYPE=Release ./scripts/build-tools.sh -l
and gcc version 9.3.0-10ubuntu2:

 tools/logger/convert.c:630:5: error: ignoring return value of ‘freopen’,
   declared with attribute warn_unused_result [-Werror=unused-result]

Tested with sof-test/test-case/check-suspend-resume-with-audio.sh

Fixes commit 6a84b4e945e4308 ("sof: logger: reopen trace file upon EOF")

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

53bda51... by Marc Herbert <email address hidden>

logger: fix uninitialized FILE *out_fd in filter_update_firmware()

Reported by VERBOSE=1 CMAKE_BUILD_TYPE=Release ./scripts/build-tools.sh -l
and gcc version 9.3.0-10ubuntu2.

out_fd is not initialized on the first "goto err:" and this can result in
trying to close a random file descriptor.

Fixes commit 126060ae633b ("logger: Send parsed runtime log levels to FW
via debugFS")

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

7d2cb09... by Marc Herbert <email address hidden>

logger: fix potential time_fmt truncation in print_entry_params()

As reported by gcc 9.3.0-10ubuntu2 and
 VERBOSE=1 CMAKE_BUILD_TYPE=Release ./scripts/build-tools.sh -l

  ‘__builtin___snprintf_chk’ output between 23 and 57 bytes
   into a time_fmt destination of size 32

Fixes commit d7b535e2825b ("logger: Add option to set timestamp
precision")

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

996ffef... by Artur Kloniecki <email address hidden>

test: pcm converter: Utilize comp_buffer implementation instead of mocking

Currently pcm converter unit tests use mocked-up audio_stream
implementation which should be replaced with real FW implementation.

Signed-off-by: Artur Kloniecki <email address hidden>