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

Get this repository:
git clone https://git.launchpad.net/~canonical-hwe-team/hwe-next/+git/sof

Import details

Import Status: Reviewed

This repository is an import of the Git repository at https://github.com/thesofproject/sof.git.

The next import is scheduled to run .

Last successful import was .

Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 1 minute — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 3 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 4 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-0 and finished taking 3 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 2 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 3 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 4 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 3 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 3 minutes — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 3 minutes — see the log

Branches

Name Last Modified Last Commit
main 2024-04-17 15:20:48 UTC
audio: base_fw: add platform layer to IPC4 hw_config data

Author: Kai Vehmanen
Author Date: 2024-04-08 13:39:11 UTC

audio: base_fw: add platform layer to IPC4 hw_config data

Some of the IPC4 HW_CONFIG fields are platform specific and cannot be
filled with generic code.

Handle this functionality by separating platform specific parts of
base_fw to a new base_fw_platform.h interface. Move out existing code
for Intel cAVS and ACE platforms. Add a new stub implementation for
posix platform. This posix stub can be also used as a starting point
when adding IPC4 support to new platforms.

This platform construct can be later used to move out other
vendor and platform data out from base_fw.c.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>

cavs2.5-001-drop-stable 2024-04-15 14:08:23 UTC
waves: verify payload size and initialize memory to zero to the

Author: barry.jan
Author Date: 2024-04-08 08:47:11 UTC

waves: verify payload size and initialize memory to zero to the
       allocated memory in waves.c

    Enhance payload corruption handling by verifying size
    and make sure to have clean buffer before using it.

Signed-off-by: barry.jan <barry.jan@waves.com>
(cherry picked from commit 355e46f051dbd4493317662e13695685153c79b9)

mtl-008-drop-stable 2024-04-12 13:47:55 UTC
overlays: dts: use prebuilt library for production

Author: Johny Lin
Author Date: 2024-02-03 15:17:59 UTC

overlays: dts: use prebuilt library for production

DTS codec targets the integration on sof-mtl-rt5650-dts.tplg. The
firmware build config should not set COMP_STUBS. At the same time the
config GOOGLE_RTC_PROCESSING_MOCK should be enabled as since its
libraries are still WIP.

Signed-off-by: Pin-chih Lin <johnylin@google.com>
(cherry picked from commit 1233a220b10c596259405da32b67067afe87f25f)

cherrypick-pr8833 2024-04-11 08:06:11 UTC
overlays: dts: use prebuilt library for production

Author: Johny Lin
Author Date: 2024-02-03 15:17:59 UTC

overlays: dts: use prebuilt library for production

DTS codec targets the integration on sof-mtl-rt5650-dts.tplg. The
firmware build config should not set COMP_STUBS. At the same time the
config GOOGLE_RTC_PROCESSING_MOCK should be enabled as since its
libraries are still WIP.

Signed-off-by: Pin-chih Lin <johnylin@google.com>
(cherry picked from commit 1233a220b10c596259405da32b67067afe87f25f)

mtl-008-cherrypick 2024-04-09 14:15:29 UTC
topology2: sof-mtl-rt5650: add SSP FMT 24 bits support

Author: Mac Chiang
Author Date: 2024-03-21 06:33:53 UTC

topology2: sof-mtl-rt5650: add SSP FMT 24 bits support

Use 24 bits format on playback and capture pipelines if codec needs,
e.g. RT5650 HS/SPK codec.

Signed-off-by: Mac Chiang <mac.chiang@intel.com>
(cherry picked from commit 980f193d0982206c8e8ad52960fd0e7e7374e7fa)

mtl-007-drop-stable 2024-04-02 16:19:08 UTC
topology2: sof-mtl-rt5650: add SSP FMT 24 bits support

Author: Mac Chiang
Author Date: 2024-03-21 06:33:53 UTC

topology2: sof-mtl-rt5650: add SSP FMT 24 bits support

Use 24 bits format on playback and capture pipelines if codec needs,
e.g. RT5650 HS/SPK codec.

Signed-off-by: Mac Chiang <mac.chiang@intel.com>
(cherry picked from commit 980f193d0982206c8e8ad52960fd0e7e7374e7fa)

stable-v2.2 2024-04-02 11:20:22 UTC
topology1: Add new sof-adl-es8336-ssp1-hdmi-ssp02-4ch topology.

Author: Balamurugan C
Author Date: 2024-03-28 07:57:13 UTC

topology1: Add new sof-adl-es8336-ssp1-hdmi-ssp02-4ch topology.

Add support to generate the topology which can be used to support
4channel DMIC,SSP based codec and HDMI-in capture via I2S combo.

Signed-off-by: Balamurugan C <balamurugan.c@intel.com>

HDMI-IN+DMIC 2024-04-01 05:45:54 UTC
topology1: Add new sof-adl-es8336-ssp1-hdmi-ssp02-4ch topology.

Author: Balamurugan C
Author Date: 2024-03-28 07:57:13 UTC

topology1: Add new sof-adl-es8336-ssp1-hdmi-ssp02-4ch topology.

Add support to generate the topology which can be used to support
4channel DMIC,SSP based codec and HDMI-in capture via I2S combo.

Signed-off-by: Balamurugan C <balamurugan.c@intel.com>

stable-v2.9 2024-03-15 13:12:44 UTC
ipc4: fw_reg: downgrade FW_REGS version to 0 to disable delay reporting

Author: Kai Vehmanen
Author Date: 2024-02-15 11:25:34 UTC

ipc4: fw_reg: downgrade FW_REGS version to 0 to disable delay reporting

Disable delay reporting as a workaround to bug
https://github.com/thesofproject/linux/issues/4781
SOF driver checks the ABI version and if it's not 1, delay reporting
is disabled.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>

stable-v2.8 2024-02-20 19:48:10 UTC
topology2: mtl: Generate topology for No headset codec

Author: Balamurugan C
Author Date: 2024-01-25 07:37:40 UTC

topology2: mtl: Generate topology for No headset codec

Adding make file changes to generate the topology file for the products
which doesn't have no ssp-based audio codec but need to support
HDMI audio playback and HDMI-in capture via I2S.

Signed-off-by: Balamurugan C <balamurugan.c@intel.com>
(cherry picked from commit 7002215a8db95d5c23ce9d073001f4a2f1267add)

NEX_change_release 2024-02-20 11:33:57 UTC
topology2: mtl: Generate topology for No headset codec

Author: Balamurugan C
Author Date: 2024-01-25 07:37:40 UTC

topology2: mtl: Generate topology for No headset codec

Adding make file changes to generate the topology file for the products
which doesn't have no ssp-based audio codec but need to support
HDMI audio playback and HDMI-in capture via I2S.

Signed-off-by: Balamurugan C <balamurugan.c@intel.com>
(cherry picked from commit 7002215a8db95d5c23ce9d073001f4a2f1267add)

lnl-001-drop-stable 2024-02-06 12:21:18 UTC
logger: convert: fix variable type for negative value

Author: Adrian Bonislawski
Author Date: 2024-02-06 12:17:23 UTC

logger: convert: fix variable type for negative value

time_precision variable can be used as -1

Fixes commit ff9343aa4a59 ("logger: convert: Fix compile time error with
newer toolchain")

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>

lrg/test/list 2024-02-05 16:43:11 UTC
list: make sure lists are aligned with a cache line.

Author: Liam Girdwood
Author Date: 2024-02-03 15:00:03 UTC

list: make sure lists are aligned with a cache line.

Align list head to cache line size and address.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

imx-stable-v2.8 2024-01-25 08:37:31 UTC
logger: convert: Fix compile time error with newer toolchain

Author: Marc Herbert
Author Date: 2024-01-23 13:03:41 UTC

logger: convert: Fix compile time error with newer toolchain

Using Compiler version: aarch64-poky-linux-gcc (GCC) 13.2.0
we get the following error:

tools/logger/convert.c: In function 'convert':
tools/logger/convert.c:357:34: error: '%*s' directive output between 4294967264 and 4294967284 bytes exceeds 'INT_MAX' [-Werror=format-overflow=]
| 357 | fprintf(out_fd, "%*s(us)%*s ", -ts_width, " TIMESTAMP", ts_width, "DELTA");
| | ^~~ ~~~~~~~~~~~~
| In file included from /opt/builds/OBNand/build/tmp/work/armv8a-poky-linux/sof-tools/2.8.0/recipe-sysroot/usr/include/stdio.h:964,
| from /opt/builds/OBNand/build/tmp/work/armv8a-poky-linux/sof-tools/2.8.0/git/tools/logger/convert.h:13,
| from /opt/builds/OBNand/build/tmp/work/armv8a-poky-linux/sof-tools/2.8.0/git/tools/logger/convert.c:21:
| In function 'fprintf',

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Marc Herbert <marc.herbert@intel.com>
(cherry picked from commit ff9343aa4a59d714f40714aa16950ee37b911df2)

mt8188/v0.2 2024-01-18 08:45:16 UTC
topology: Add Waves codec to MT8188 topology

Author: barry.jan
Author Date: 2023-11-10 07:59:55 UTC

topology: Add Waves codec to MT8188 topology

Modify sof-mt8188-mt6359 topology so Waves codec can be added
to playback in case 'WAVES' is defined.

Signed-off-by: barry.jan <barry.jan@waves.com>
(cherry picked from commit 5cf1c9c0d67c09437bff0db6e3bda4c7a1b0fbb5)

mt8186/v0.2 2024-01-16 08:36:25 UTC
waves: store config blob in a cache in waves.c

Author: barry.jan
Author Date: 2023-11-06 10:59:40 UTC

waves: store config blob in a cache in waves.c

Store/apply config blob in a cache to avoid that
cfg.data will be released after prepare.

Signed-off-by: barry.jan <barry.jan@waves.com>

stable-v2.7 2023-11-13 14:12:35 UTC
versions.json: bump version to 2.7.2

Author: Kai Vehmanen
Author Date: 2023-11-13 11:01:40 UTC

versions.json: bump version to 2.7.2

Set version to 2.7.2 to prepare for release.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>

imx-stable-v2.7 2023-11-10 13:38:14 UTC
schedule: zephyr_dma_domain: Do not use a registered channel

Author: Daniel Baluta
Author Date: 2023-11-09 17:30:47 UTC

schedule: zephyr_dma_domain: Do not use a registered channel

Current implementation only checks if a channel is used with
current interrupt. But that channel might have been registered
with another interrupt earlier.

So, we need a way to skip channels already used. For this, we iterate
over all registered interrupts and check existing registered channels.

This fixes scenarios where running:

$ arecord -Dhw:0,0 -f S32 -c 2 -r 48000 -t raw |
aplay -Dhw:0,0 -f S32_LE -c 2 -r 48000

will result in an I/O error.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
(cherry picked from commit 1a8b1bf60c349ac2f2a7e9078bc2186748424695)

mtl-006-stable-fork 2023-10-30 01:50:15 UTC
smart_amp: remove comp_verify_params service

Author: Rander Wang
Author Date: 2023-10-30 01:50:15 UTC

smart_amp: remove comp_verify_params service

Signed-off-by: Rander Wang <rander.wang@intel.com>

mtl-006-drop-stable 2023-10-20 09:09:19 UTC
IPC4: Add header to support user space ALSA notifications

Author: Seppo Ingalsuo
Author Date: 2023-10-02 07:59:56 UTC

IPC4: Add header to support user space ALSA notifications

This patch adds struct sof_ipc4_notify_module_data that matches
the Linux kernel handler for notifications from firmware to ALSA
user space. The SOF_IPC4_NOTIFY_MODULE_EVENTID_ALSA_MAGIC_VAL
event_id is used to identify the notifications for ALSA controls
like switch and enum.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>

add_sdma 2023-10-16 13:51:35 UTC
drivers: imx: Select HAVE_SDMA_FIRMWARE when using MICFIL

Author: Daniel Baluta
Author Date: 2023-10-16 13:51:17 UTC

drivers: imx: Select HAVE_SDMA_FIRMWARE when using MICFIL

MICFIL needs multi-fifo SDMA script so select HAVE_SDMA_FIRMWARE.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>

amd-vangogh-stable 2023-10-04 13:05:55 UTC
Add the Smart Amp component to the I2SHS

Author: SaiSurya Ch
Author Date: 2023-10-04 13:05:55 UTC

Add the Smart Amp component to the I2SHS

Signed-off-by: SaiSurya Ch <saisurya.chakkaveeravenkatanaga@amd.com>

topic/upstarem/drop/006/pr/ci_test 2023-09-14 10:25:49 UTC
nothing: empty commit

Author: Tomasz Leman
Author Date: 2023-09-14 10:25:49 UTC

nothing: empty commit

Empty commit done for test.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>

dynamic-pipeline 2023-09-14 06:55:35 UTC
topology1: Use DYNAMIC for ADL and RPL topologies

Author: Vamshi Krishna Gopal
Author Date: 2023-08-24 14:14:31 UTC

topology1: Use DYNAMIC for ADL and RPL topologies

use dynamic for all the adl and rpl topologies except 3p(waves,DTS),
excluded Dell sdw topologies which are not tested.

Signed-off-by: Vamshi Krishna Gopal <vamshi.krishna.gopal@intel.com>

amd-phx-stable 2023-09-06 09:22:28 UTC
Updating clock switching and clock frequency sequence

Author: maruthi machani
Author Date: 2023-09-06 09:22:28 UTC

Updating clock switching and clock frequency sequence
returning EBUSY for IPC when Host busy with previous ipc.

Signed-off-by: maruthi machani <maruthi.machani@amd.corp-partner.google.com>

mt8188/v0.1 2023-08-22 15:28:57 UTC
audio: module_adapter: Solve the build error using xtensa toolchain

Author: Hailong Fan
Author Date: 2023-08-18 07:29:38 UTC

audio: module_adapter: Solve the build error using xtensa toolchain

Build error info is as follows when compiling with xt-xx toolchain:
1.redefinition of ‘i’
2.‘for’ loop initial declaration used outside C99 mode
Fix the above error.

Signed-off-by: Hailong Fan <hailong.fan@mediatek.corp-partner.google.com>

jsl-005-drop-stable 2023-08-21 12:31:33 UTC
topology1: sof-jsl-rt5650: support ALC5650

Author: Brent Lu
Author Date: 2023-08-11 03:41:31 UTC

topology1: sof-jsl-rt5650: support ALC5650

Add a new topology sof-jsl-rt5650 for ALC5650 which supports SSP0 for
headset and SSP1 for speakers since this codec implements two I2S
interfaces.

DAI format changed to mclk: 24.576MHz, bclk: 3.072MHz, sample bits:
24-bit to avoid using ASRC function on codec side.

Signed-off-by: Brent Lu <brent.lu@intel.com>

amd-rmb-dts 2023-08-10 02:45:53 UTC
dts: handle zero config size case in apply_config instead of set_configuration

Author: Joe.Cheng
Author Date: 2023-05-19 03:37:17 UTC

dts: handle zero config size case in apply_config instead of set_configuration

To handle zero config size case in set_configuration would let
dts_codec_apply_config never be called due to early return when checking
if md->new_config_size is zero. This causes the problem that DTS
tuning parameter would never be set. Instead, check the config size in
dts_codec_apply_config() could resolve the zero config case and let the
tuning parameter could be set successfully.

Signed-off-by: Joe.Cheng <joe.cheng@xperi.com>

imx-stable-v2.6 2023-08-03 08:07:07 UTC
src: drivers: imx: ipc.c: Don't assert GIR twice

Author: Laurentiu Mihalcea
Author Date: 2023-07-24 13:29:25 UTC

src: drivers: imx: ipc.c: Don't assert GIR twice

According to MU's documentation from the i.MX TRM, setting
the GIRn bit to 1 if already 1 may lead to issuing a second interrupt.

This leads to kernel errors such as:

"reply size (16) exceeds the buffer size (12)"

because of the fact that the MU IRQ is triggered prematurely and
the firmware doesn't have enough time to write the reply. As such,
the host will read the message it has sent to the firmware instead
of its reply.

To fix this, make sure that GIRn is set to 0 before setting it 1.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>

mtl-005-drop-stable 2023-07-19 07:41:34 UTC
west: update rimage to a0b0187ce1e9

Author: Adrian Bonislawski
Author Date: 2023-07-19 07:41:34 UTC

west: update rimage to a0b0187ce1e9

update rimage to a0b0187ce1e9
(added missing cpc values and fixed pv build)

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>

lrg/topic/plugin 2023-07-14 15:36:55 UTC
rebase and fix build.

Author: Liam Girdwood
Author Date: 2023-07-14 15:36:55 UTC

rebase and fix build.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

stable-v2.6 2023-07-13 12:45:37 UTC
versions.json: bump to 2.6.1

Author: Kai Vehmanen
Author Date: 2023-07-13 08:06:30 UTC

versions.json: bump to 2.6.1

Prepare for 2.6.1 release by bumping the version number.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>

mtl-005-hotfix3 2023-07-12 15:41:18 UTC
iadk_modules refactor

Author: Dobrowolski, PawelX
Author Date: 2023-04-14 12:13:23 UTC

iadk_modules refactor

Both native sof loadable modules and IADK are using same:
 - loading flow
 - registering
 - module API
That is why iadk prefix is removed from common parts.

Signed-off-by: Dobrowolski, PawelX <pawelx.dobrowolski@intel.com>

amd-rn-prod-001 2023-06-26 10:09:08 UTC
Introducing initial silence with gradual restoring of dmic data

Author: MARUTHI MACHANI
Author Date: 2023-06-26 10:09:08 UTC

Introducing initial silence with gradual restoring of dmic data

introducing initial silence with gradual restoring of dmic
data in DMIC path to remove the popping noise

Signed-off-by: MARUTHI MACHANI <maruthi.machani@amd.com>

amd_rn_dts 2023-06-26 07:25:25 UTC
Introducing initial silence with gradual restoring of dmic data

Author: MARUTHI MACHANI
Author Date: 2023-06-26 07:25:25 UTC

Introducing initial silence with gradual restoring of dmic data

introducing initial silence with gradual restoring of dmic
data in DMIC path to remove the popping noise

Signed-off-by: MARUTHI MACHANI <maruthi.machani@amd.com>

amd-rn-stable 2023-06-19 09:01:13 UTC
renior:Introducing initial silence with gradual restoring of dmic data

Author: MARUTHI MACHANI
Author Date: 2023-06-19 09:01:13 UTC

renior:Introducing initial silence with gradual restoring of dmic data

introducing initial silence with gradual restoring of dmic data
in DMIC path to remove the popping noise

Signed-off-by: MARUTHI MACHANI <maruthi.machani@amd.com>

amd-rmb-stable 2023-06-19 08:51:51 UTC
renior:Introducing initial silence with gradual restoring of dmic data

Author: MARUTHI MACHANI
Author Date: 2023-06-19 08:51:51 UTC

renior:Introducing initial silence with gradual restoring of dmic data

introducing initial silence with gradual restoring of dmic data
in DMIC path to remove the popping noise

Signed-off-by: MARUTHI MACHANI <maruthi.machani@amd.com>

topic/performance_optimization 2023-06-16 14:26:56 UTC
[Not for main] Tools: Topology2: Add a development HDA generic MCPS benchmark...

Author: Seppo Ingalsuo
Author Date: 2023-06-16 10:57:25 UTC

[Not for main] Tools: Topology2: Add a development HDA generic MCPS benchmark topology

This patch builds new development topologies
sof-hda-benchmark-generic-<tgl/mtl/lnl>.tplg to evaluate performance
of a set of playback components.

The topology for PCM0P playback is

host-copier.0 --> gain.1.1 --> mixin.1.1 -->
 mixout.2.1 --> aria.2.1 --> gain.2.1 --> mixin
 mixout.3.1 --> dai-copier.HDA

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>

lrg/topic/module_optimize 2023-06-02 12:50:38 UTC
module_adapter: setup all modules for single core by default

Author: Liam Girdwood
Author Date: 2023-06-02 12:50:38 UTC

module_adapter: setup all modules for single core by default

All pipeline modules should be in single core mode unless stated by
topology to span more than one core and hence need cache ops.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

lrg/topic/remove_divides 2023-06-01 16:28:57 UTC
audio_stream: do shifts instead of divisions where possible

Author: Liam Girdwood
Author Date: 2023-06-01 16:09:47 UTC

audio_stream: do shifts instead of divisions where possible

Optimise free/avail sample/frame APIs to shift instead of divide where
possible.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

imx-stable-v2.5 2023-05-22 07:17:36 UTC
drivers: imx: sdma: Invalidate cache when reading info from BDs

Author: Paul Olaru
Author Date: 2023-05-19 12:07:10 UTC

drivers: imx: sdma: Invalidate cache when reading info from BDs

This invalidation is required in order for the driver to correctly
report the available/free bytes on a given DMA channel.

Fixes: 87d79c48dd ("drivers: imx: sdma: Add SDMA support to SOF")

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>

MTL-005 2023-05-10 16:01:31 UTC
Audio: SRC: Use only module API and fix IPC4 capture direction

Author: Seppo Ingalsuo
Author Date: 2023-04-13 12:43:52 UTC

Audio: SRC: Use only module API and fix IPC4 capture direction

This patch cleans up SRC component. There is no need to keep
IPC3 version build with legacy component interface. The patch
mainly removes code under CONFIG_IPC_MAJOR_3 and makes some
functions available for all builds from CONFIG_IPC_MAJOR_4.

The IPC4 capture issue is fixed by using the src_init()
IPC rates for source and sink rate initialize. It needs a
similar kernel update to always set those values. In practical
topologies in prepare the buffers may not contain the correct
stream information because the order of host copier and
dai copier pipeline prepare can be host first where capture
SRC is usually placed.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>

lrg/topic/posix 2023-04-16 14:07:51 UTC
posix: memory: wip align memory abstraction around posix

Author: Liam Girdwood
Author Date: 2023-04-16 14:07:51 UTC

posix: memory: wip align memory abstraction around posix

WIP: need to fix mocks.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

stable-v2.5 2023-04-12 12:05:33 UTC
audio: mixer: Fix inactive streams handling

Author: Paul Olaru
Author Date: 2023-04-07 09:43:54 UTC

audio: mixer: Fix inactive streams handling

The previous patch 908876cc5f introduced a bug where the wrong input
buffer had the "consumed" field updated. This affected playing from
_only_ the second input stream in weird ways (specifically, sound was
slower and every other period I'd get a "no bytes to copy" message from
the active host component).

This patch fixes the indexing for that update.

Fixes: 908876cc5f "audio: mixer: Improve handling of inactive input streams"
Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
(cherry picked from commit 5da0812a81cb4e9aa64c35a210c68749f5474943)

imx-stable-v2.4 2023-04-11 14:53:27 UTC
imx: sai: enable transmitter to output MCLK

Author: Iuliana Prodan
Author Date: 2023-04-08 21:23:33 UTC

imx: sai: enable transmitter to output MCLK

On i.MX8MP, the SAI MCLK is bound with TX enable bit.
Therefore, in order to enable MCLK, we need to enable
the transmitter.

This fixes a "wm8962 2-001a: DC servo timed out" -
a Linux Kernel error with wm8962 codec.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
(cherry picked from commit 1754bf97ec1fea02668629cfe916a7f2474c5d72)

amd 2023-03-28 13:25:34 UTC
set_attenuation: adding checker based on config data

Author: Kwasowiec, Fabiola
Author Date: 2023-03-27 10:23:47 UTC

set_attenuation: adding checker based on config data

Adding attenuation checking based on the frame_fmt
from the config of the module instead of calling
sink->stream.frame_fmt, because sending IPC_SET_ATTENUATION
before calling module_prepare results in an error,
because at this stage the sink values are not yet set
(sink->stream.frame_fmt is zero)

Signed-off-by: Kwasowiec, Fabiola <fabiola.kwasowiec@intel.com>

imx-stable-v2.3 2023-03-20 15:40:23 UTC
scripts: qemu-check.sh: update READY_IPC for imx8

Author: Iuliana Prodan
Author Date: 2023-03-02 21:42:52 UTC

scripts: qemu-check.sh: update READY_IPC for imx8

Update READY_IPC value based on changes regarding
interrupt initialization.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
(cherry picked from commit c74972bbee08020aa92361c401bc801ef7518ae4)

mtl-004-drop-stable 2023-03-13 07:35:24 UTC
topology2: add cpc value for gain

Author: Chao Song
Author Date: 2023-03-10 03:04:25 UTC

topology2: add cpc value for gain

The missing cpc in gain component results in wrong
calculation for clock selection, and causes capture
issues.

Link: https://github.com/thesofproject/sof/issues/7228
Link: https://github.com/thesofproject/sof/issues/7230

Signed-off-by: Chao Song <chao.song@linux.intel.com>

mtl-003-drop-stable 2023-03-01 14:26:39 UTC
ace: pm_runtime: force L1 exit if requested

Author: Adrian Bonislawski
Author Date: 2023-03-01 11:48:26 UTC

ace: pm_runtime: force L1 exit if requested

IMPORTANT: PM part should be moved to zephyr!

This will add possibility to force host L1 exit

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>

kf/topic/ams 2023-02-22 15:46:50 UTC
kd: add ams support

Author: Ievgen Ganakov
Author Date: 2023-02-22 14:34:44 UTC

kd: add ams support

Add support for AMS event notifications to KD module

Signed-off-by: Ievgen Ganakov <ievgen.ganakov@intel.com>

cavs2.5-tmp-mergeback0222 2023-02-22 07:01:21 UTC
smart_amp: eliminat pops when switch device between speaker and headphone.

Author: Long Wang
Author Date: 2023-02-07 08:44:01 UTC

smart_amp: eliminat pops when switch device between speaker and headphone.

There are two pops caused by SOF Firmware.

Pop occurs when switch from headphone to speaker:
When switch to headphone, audio playback data still remains in
DSM internal processing buffer and not consumed by DMA.
So when switch back to speaker, the DSM processing buffer is not clean,
then pop noise occurs. We can clean and reset the point for
DSM internal processing buffer by called this function 'smart_amp_init'
in function 'smart_amp_prepare'.

Pop occurs when switch from speaker to headphone:
The feedback and feed-forward buffer processing should be independent.
But the number of frames processed by DSM feedforward is corrupted by
feedback buffer calculation. When capture pipeline exists,
the number of frames for feedforward is always same as feedback.
And the number of frames for feedback is zero at the first time
when the capture pipeline setup. Then the number of frames processed
by DSM feed forward is also zero though there are many frames in
playback buffer. So the available frames will become larger.
It is easy to exceed the limit size of DSM input.
Then it will cause the buffer overflow and we could hear obvious pop
noise from speaker. We fix it by calculating the number of frames
for feedforward and feedback respectively.

Signed-off-by: Long Wang <long.wang@analog.com>
(cherry picked from commit 8a1798e4e843a2a3c8f29387c091e105b4bc4810)

MTL-003.1 2023-02-10 16:22:56 UTC
smart_amp_test: fix data size check

Author: Adrian Bonislawski
Author Date: 2023-02-10 15:40:29 UTC

smart_amp_test: fix data size check

This will allow to return -EINVAL if wrong size provided.

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>

btian1/copier 2023-02-07 07:08:45 UTC
Copier: Split more host interface for copier optimization preparation

Author: Baofeng Tian
Author Date: 2023-02-03 12:20:12 UTC

Copier: Split more host interface for copier optimization preparation

Split left host api with dma interface to avoid ops calling in copier.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>

cavs2.5-cherrypick 2023-02-02 08:59:05 UTC
topology1: set Speakers PPL running on C1 by default

Author: Pin-chih Lin
Author Date: 2023-01-20 07:51:35 UTC

topology1: set Speakers PPL running on C1 by default

For Intel platforms, C0 is on by default for processes necessary to
run in low power cases, while C1..3 for processes with higher loads.
This commit moves the default core to C1 for Speakers pipeline.

At the same time, we found this commit can resolve the DSP panic
issue on builds with 3P post-processing solutions running on Speakers
pipeline.

Signed-off-by: Pin-chih Lin <johnylin@google.com>
(cherry picked from commit 7f80908f28b3535787d885adc4750f266fdf4b93)

maruti_test 2023-01-24 21:22:42 UTC
module_adapter: refactor the copy function

Author: Ranjani Sridharan
Author Date: 2023-01-10 00:28:25 UTC

module_adapter: refactor the copy function

Refactor the module_adapter_copy() function to split the simple_copy
case into a separate helper function

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>

stable-v2.4 2023-01-09 19:13:49 UTC
xtensa-build-zephyr.py: add --extra-rimage-args option

Author: Marc Herbert
Author Date: 2023-01-09 18:46:07 UTC

xtensa-build-zephyr.py: add --extra-rimage-args option

Temporary solution until the `west sign` situation is finalized
upstream, see zephyrproject-rtos/zephyr/pull/52942 and others.

Use shlex.split() that supports both some quoting and empty strings
nicely.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>

src_xcc_fix 2023-01-09 17:24:01 UTC
dai-zephyr: handle NULL case when calling dai_config_get()

Author: Kai Vehmanen
Author Date: 2022-12-30 12:22:12 UTC

dai-zephyr: handle NULL case when calling dai_config_get()

As per interface documentation of dai_config_get(), the function
may return NULL if the device is not configured for the requested
direction. Handle this case explicitly.

Currently no upstream Zephyr driver returns NULL, but e.g. dmic
driver returns invalid configuration when dai_config_get() is
called with DAI_DIR_TX as direction.

Link: https://github.com/thesofproject/sof/issues/6896
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>

amd-rn-stable-local 2022-12-27 12:39:12 UTC
topology: sof-jsl-rt5682: add sof-jsl-rt5682.tplg

Author: Brent Lu
Author Date: 2022-12-01 03:23:26 UTC

topology: sof-jsl-rt5682: add sof-jsl-rt5682.tplg

This topology supports JSL boards which implement ALC5682I-VD/VS on
SSP0 port without speaker amplifier.

Signed-off-by: Brent Lu <brent.lu@intel.com>

test_ci 2022-12-22 08:02:22 UTC
topology2: sof-ace-tplg: Rename sof-mtl-sdw

Author: Ranjani Sridharan
Author Date: 2022-12-01 16:24:36 UTC

topology2: sof-ace-tplg: Rename sof-mtl-sdw

To it's actual name sof-mtl-rt711-4ch.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>

mtl-002-drop-stable 2022-12-21 16:39:21 UTC
platform: ace: dma: update DWDMA buffer period count

Author: Adrian Bonislawski
Author Date: 2022-12-21 16:39:21 UTC

platform: ace: dma: update DWDMA buffer period count

This will increase DWDMA buffer period count like for
HDA in ae222a8d3f0

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>

mt8195/v0.4 2022-12-21 03:49:16 UTC
module_adapter:dts: required code update for DTS library v1.0.7

Author: Joe.Cheng
Author Date: 2022-11-17 06:13:18 UTC

module_adapter:dts: required code update for DTS library v1.0.7

1. Remove totalBufferLengthInBytes as it's handled by SDK internally now.
2. Add debug log to print config size

Signed-off-by: Joe.Cheng <joe.cheng@xperi.com>

module_reset_API 2022-12-16 09:21:23 UTC
module_adapter: free memory resource

Author: barry.jan
Author Date: 2022-12-13 08:36:09 UTC

module_adapter: free memory resource

Since module-specific prepare API will be called every time on prepare
 of module_adapter (stream start trigger), the reset API should
free all memory that was allocated during the prepare API.

Signed-off-by: barry.jan <barry.jan@waves.com>
(cherry picked from commit 6275d18ce2a58e85a5f77bcbdf133fcdc6722216)

RemoveGoogleRtcAudioProcessingLib 2022-12-15 08:09:19 UTC
comp: fix bind order

Author: Kwasowiec, Fabiola
Author Date: 2022-12-12 11:47:39 UTC

comp: fix bind order

Current ipc_comp_connect() connects the source first, then calls comp_bind
and only then connects the sink. This leads to errors with modules that
assume sink to be connected at bind. This is a valid assumption, so fix
the order in ipc_comp_connect().

Signed-off-by: Kwasowiec, Fabiola <fabiola.kwasowiec@intel.com>

RemoveTuningLib 2022-12-15 08:09:19 UTC
comp: fix bind order

Author: Kwasowiec, Fabiola
Author Date: 2022-12-12 11:47:39 UTC

comp: fix bind order

Current ipc_comp_connect() connects the source first, then calls comp_bind
and only then connects the sink. This leads to errors with modules that
assume sink to be connected at bind. This is a valid assumption, so fix
the order in ipc_comp_connect().

Signed-off-by: Kwasowiec, Fabiola <fabiola.kwasowiec@intel.com>

revert-6719-static_analysis_fix3 2022-12-08 12:56:51 UTC
Revert "ipc4: fix ret value of set_pipeline_state"

Author: Marcin Szkudlinski
Author Date: 2022-12-08 12:56:51 UTC

Revert "ipc4: fix ret value of set_pipeline_state"

This reverts commit b9b5750d1b682b7a248ace1bf250220ea2d95aef.

correc 2022-12-07 17:25:39 UTC
ipc3: Check component type for stream commands

Author: Andy Ross
Author Date: 2022-12-06 18:44:23 UTC

ipc3: Check component type for stream commands

Not all ipc_comp_dev structs contain a comp_dev pointer, it's unioned
based on the "type" field. Since the object ID is part of an IPC
command and under the control of external software, and since there
can be valid non-stream components stored in the list, we need to
check this type before accessing the invalid data belonging to the
other union types.

Signed-off-by: Andy Ross <andyross@google.com>

GeneralizeGoogleRtcAudioProcessingComponent 2022-12-06 22:22:07 UTC
Merge remote-tracking branch 'origin/main' into GeneralizeGoogleRtcAudioProce...

Author: =?utf-8?q?Per_=C3=85hgren?=
Author Date: 2022-12-06 22:22:07 UTC

Merge remote-tracking branch 'origin/main' into GeneralizeGoogleRtcAudioProcessingComponent

ExtendingGoogleRtcAudioProcessingComponent 2022-12-02 15:17:51 UTC
Update the GoogleRtcAudioProcessing component to be more versatile

Author: =?utf-8?q?Per_=C3=85hgren?=
Author Date: 2022-12-02 15:17:51 UTC

Update the GoogleRtcAudioProcessing component to be more versatile

UpdateGoogleRtcAudioProcessingComponent 2022-12-02 15:17:51 UTC
Update the GoogleRtcAudioProcessing component to be more versatile

Author: =?utf-8?q?Per_=C3=85hgren?=
Author Date: 2022-12-02 15:17:51 UTC

Update the GoogleRtcAudioProcessing component to be more versatile

Exponential_function_dev 2022-11-23 09:30:48 UTC
Math: library: Add an exponential function

Author: ShriramShastry
Author Date: 2022-11-23 09:30:48 UTC

Math: library: Add an exponential function

The 32-bit exponential library function has an accuracy
of 1e-4 and a unit in last place error of 5.60032793 for
inputs from -5 to +5 (Q4.28) and outputs from 0.0067379470
to 148.4131591026 (Q9.23).

Signed-off-by: ShriramShastry <malladi.sastry@intel.com>

marc-hb-patch-1 2022-11-17 19:07:51 UTC
.github: create Sparse Zephyr workflow

Author: Marc Herbert
Author Date: 2022-11-17 19:07:51 UTC

.github: create Sparse Zephyr workflow

First attempt in https://github.com/thesofproject/sof/pull/6626
but afraid brand new workflows have to be created from the web UI first...

Signed-off-by: Marc Herbert <marc.herbert@intel.com>

amd-rn-dts-update 2022-11-16 07:23:59 UTC
drivers:amd:renoir: fix proper mux register

Author: Balakishorepati
Author Date: 2022-11-09 07:19:35 UTC

drivers:amd:renoir: fix proper mux register

Define proper mux selection register for
renoir platform.

Signed-off-by: Balakishorepati <balaKishore.pati@amd.com>
(cherry picked from commit a0ff2d44608d437a9c62e67ed81121e6db860118)

sdw_aic 2022-11-09 22:50:52 UTC
topology2: cavs: Add SDW speaker,headset,hdmi and DMIC support

Author: Yong Zhi
Author Date: 2022-11-09 06:59:22 UTC

topology2: cavs: Add SDW speaker,headset,hdmi and DMIC support

This patch adds topology support to external SDW audio interface card (aic)
with spk amp on SDW0 and headset codec on SDW2 along with DMIC and HDMI.

Hence, adding the entries for the same to match with below BE order:

SDW2-Playback, id 0
SDW2-Capture, id 1
SDW0-Playback, id 2
SDW0-Capture, id 3
dmic01, id 4
dmic16k, id 5
iDisp1, id 6
iDisp2, id 7
iDisp3, id 8
iDisp4, id 9

Signed-off-by: Yong Zhi <yong.zhi@intel.com>
Signed-off-by: jairaj-arava <jairaj.arava@intel.com>

shastry_audioquality_develop 2022-11-03 14:05:28 UTC
Audio:Matlab compatibility : Enhancing audio quality tests for device testing

Author: shastry
Author Date: 2022-11-03 14:05:28 UTC

Audio:Matlab compatibility : Enhancing audio quality tests for device testing

The check-in overcomes Octave and Matlab compatibility issues.
The performance of matlab and octave is now comparable.

Signed-off-by: shastry <malladi.sastry@intel.com>

rpl_001_fixes 2022-10-31 08:34:34 UTC
topology: waves: remove deprecated kcontrol widget and data

Author: Pin-chih Lin
Author Date: 2022-10-27 10:19:37 UTC

topology: waves: remove deprecated kcontrol widget and data

Fix aligned to pipe-waves-codec-playback.m4 due to module_adapter
design change.

Signed-off-by: Pin-chih Lin <johnylin@google.com>
(cherry picked from commit aa589343fdd29144e85e167268fb3913e12a79e0)

mux_module_ipc4_support 2022-10-20 06:33:48 UTC
copier: set conversion function for all pins

Author: Kwasowiec, Fabiola
Author Date: 2022-10-17 08:21:36 UTC

copier: set conversion function for all pins

conversion function and out_fmt
is set only for first pin

Signed-off-by: "Kwasowiec, Fabiola" <fabiola.kwasowiec@intel.com>

sofTDM 2022-10-14 15:23:01 UTC
Revert "topology2: nocodec: add volume and mixer support"

Author: Kai Vehmanen
Author Date: 2022-10-14 06:58:24 UTC

Revert "topology2: nocodec: add volume and mixer support"

This reverts commit 5594ad3512830feaa478677718036ffabf51a454.

tdm 2022-10-14 15:23:01 UTC
Revert "topology2: nocodec: add volume and mixer support"

Author: Kai Vehmanen
Author Date: 2022-10-14 06:58:24 UTC

Revert "topology2: nocodec: add volume and mixer support"

This reverts commit 5594ad3512830feaa478677718036ffabf51a454.

first_land 2022-10-12 11:57:58 UTC
dts: support multi-config blob storage and applying

Author: Pin-chih Lin
Author Date: 2022-10-12 10:56:33 UTC

dts: support multi-config blob storage and applying

(For AMD Branch Only)

At present the config is applied spontaneously via IPC commands of
config setting from clients, which costs blob transmission per config
switch and is unable to adopt read-only bytes control for security
concerns.

By adding enum control support on module_adapter, blob transmissions
for multi-config could be migrated to module initialization, stored by
internal blob cache, and applied selectively based on the value of
enum control. Per config switch clients only need to specify the value
of enum control, the corresponding config blob will be applied on
prepare().

For backward compatibility, simply set the value as the config index
after the corresponding config blob is obtained from external.

Signed-off-by: Pin-chih Lin <johnylin@google.com>

mtl-001-drop-stable 2022-09-29 13:09:51 UTC
Import 2 hotfixes from zephyr:

Author: Marcin Szkudlinski
Author Date: 2022-09-29 13:09:51 UTC

Import 2 hotfixes from zephyr:

drivers: dai: ssp: set i2s master link clock source
drivers: dai: ssp: fix mdivr register for ACE platform

amd-rn-common 2022-09-25 10:49:24 UTC
module_adapter:Fix dangling pointer issue in module reset

Author: Balakishorepati
Author Date: 2022-09-16 06:52:41 UTC

module_adapter:Fix dangling pointer issue in module reset

During module_reset and module_free Calls, pointers are not
getting reset to NULL which causes dangling pointer exceptions.
Initialize pointers to NULL after deallocating the memory.

Signed-off-by: Balakishorepati <balaKishore.pati@amd.com>
(cherry picked from commit 53b3bc6a956ae5957966336f88980438f1f85a88)

stable-v2.3 2022-09-08 13:05:01 UTC
zephyr: deprecate zephyr.h and use kernel.h header

Author: Chao Song
Author Date: 2022-09-06 02:42:20 UTC

zephyr: deprecate zephyr.h and use kernel.h header

The zephyr header zephyr.h should be only used with
CONFIG_LEGACY_INCLUDE_PATH, which is deprecate by both
Zephyr and SOF.

The latest zephyr main will complain if zephyr.h is
used but CONFIG_LEGACY_INCLUDE_PATH disabled.

This patch deprecates zephyr.h and uses kernel.h instead,
so that we don't break with latest zephyr.

Signed-off-by: Chao Song <chao.song@linux.intel.com>

imx-stable-v2.2 2022-08-29 10:56:28 UTC
xtensa: configs: Enable comp legacy on i.MX platforms

Author: Laurentiu Mihalcea
Author Date: 2022-08-29 10:10:14 UTC

xtensa: configs: Enable comp legacy on i.MX platforms

PCM capture followed by PCM playback would not work if
done immediately (less than 2s, sof suspend timeout)

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>

amd-rn-aec 2022-08-25 13:20:26 UTC
topology1: remove mt8186 unused topologies

Author: Chunxu Li
Author Date: 2022-08-25 07:31:16 UTC

topology1: remove mt8186 unused topologies

Remove mt8186 unused topologies.

We use sof-mt8186 on our demo board, sof-mt8186-mt6366-rt1019-rt5682s
and sof-mt8186-mt6366-da7219-max98357 will no be used anymore.

Signed-off-by: Chunxu Li <chunxu.li@mediatek.com>

revert-5629-zepbuild-noshell 2022-08-08 10:55:14 UTC
Revert "xtensa-build-zephyr.py: forbid shell=True"

Author: Jakub Dabek
Author Date: 2022-08-08 10:55:14 UTC

Revert "xtensa-build-zephyr.py: forbid shell=True"

This reverts commit 93f20d577c022d7efbaf7fbc85530a1b1f74b1f6.

mtk_dojo_art 2022-07-15 03:47:24 UTC
topology1: rtnr: set bytes control to read-only

Author: Pin-chih Lin
Author Date: 2022-05-24 07:12:51 UTC

topology1: rtnr: set bytes control to read-only

Due to security requirement, the config bytes control is set to read-only
for RTNR with hard-coded the config blob in the topology.

It's WA until the security approval is obtained.

Signed-off-by: Pin-chih Lin <johnylin@google.com>
(cherry picked from commit 5df56355d150fc47c308e7f6cd407fe3d95e51f4)

mt8186/v0.1 2022-06-23 03:59:27 UTC
CMake: pass firmware file micro version to rimage

Author: Mengdong Lin
Author Date: 2022-04-29 04:06:55 UTC

CMake: pass firmware file micro version to rimage

SOF CMake defines SOF_MAJOR, SOF_MINOR and SOF_MICRO for 3 fields of
firmware file version major.minor.micro. But CMake only passes the major
and minor version to rimage.

Now CMake will also pass the mirco version to rimage, so that rimage can
write it to different firmware manifest headers for cAVS platforms and
then sof_ri_info.py will be able to dump entire file version info from
the firmware binary.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>

stable-v2.1 2022-06-10 08:52:22 UTC
topology1: sof-icl-rt711-rt1308-rt715-hdmi: fix typo

Author: Libin
Author Date: 2022-06-01 01:25:24 UTC

topology1: sof-icl-rt711-rt1308-rt715-hdmi: fix typo

Signed-off-by: Libin Yang <libin.yang@intel.com>
(cherry picked from commit fa8570d22d30737cc65894c6a04f400ed10439bd)

imx-stable-v2.1 2022-05-25 06:19:45 UTC
topology1: remove setup config info from further codec_adapter topologies

Author: Paul Olaru
Author Date: 2022-05-16 12:52:25 UTC

topology1: remove setup config info from further codec_adapter topologies

Remove the setup config info from all initial config data in the
codec_adapter kcontrol's. This is no longer needed.

Fixes: bfd5e61768713 ("topology1: remove setup config info from all codec_adapter topologies")
Fixes: 692299f2a65fc ("codec_adapter: Remove setup config from module data")

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>

mt8195/v0.5 2022-05-12 01:21:33 UTC
[RTNR] Add audio stream layer between sof and RTNR

Author: Ming Jen Tai
Author Date: 2022-03-15 03:09:42 UTC

[RTNR] Add audio stream layer between sof and RTNR

The audio_stream structure might be different between branches. To maintain the compatibility between branches, a layer between sof and RTNR is added.

Signed-off-by: Ming Jen Tai <mingjen_tai@realtek.com>

amd-rn-nondts 2022-05-05 20:52:13 UTC
perf_cnt: add the tracing of window-based average calculation

Author: Pin-chih Lin
Author Date: 2022-04-12 16:38:32 UTC

perf_cnt: add the tracing of window-based average calculation

The average number of cpu cycles/ticks spent could be provided per 1024
scheduled tasks by the performance counter. It would be more accurate for
MCPS measurement than the peak number. Even so, the tracing macro will log
both of them to provide more insights.

This is enabled by CONFIG_PERFORMANCE_COUNTERS_RUN_AVERAGE, which depends
on CONFIG_PERFORMANCE_COUNTERS.

Signed-off-by: Pin-chih Lin <johnylin@google.com>

stable-v2.0 2022-04-27 09:53:39 UTC
zephyr/docker-build.sh: match UID with 'adduser' instead of 'chgrp -R'

Author: Marc Herbert
Author Date: 2022-04-25 23:30:18 UTC

zephyr/docker-build.sh: match UID with 'adduser' instead of 'chgrp -R'

Some conflicts because this branch does not have the new
xtensa-build-zephyr.py, it still uses xtensa-build-zephyr.sh

This fixes SOF version.cmake which was just broken by a recent git
security update and started to fail like this:

```
  -- SOF version.cmake starting at 2022-04-25T18:14:56Z UTC
  -- /workdir/zephyr/.. is at git commit with parent(s):
  fatal: unsafe repository ('/workdir' is owned by someone else)
  To add an exception for this directory, call:

   git config --global --add safe.directory /workdir
```
(example at https://github.com/thesofproject/sof/runs/6162885265)

chgrp -R was always an ugly hack because it was messing with
(persistent) file permissions on the host, outside the container. This
new adduser solution is unfortunately much more code but it does not
leak any side effect outside the container.

Do not fix scripts/docker-run.sh yet because there is still no UID
mismatch between Github Actions and the SOF container (they're both
1001) but add a warning + TODO.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
(cherry picked from commit d09844ab98cc0f03681d2edbc0395a4f3e1a17ee)

stable-v1.9 2022-04-01 13:47:38 UTC
test: topology: fix build with latest alsa-lib

Author: Ranjani Sridharan
Author Date: 2022-01-06 00:15:08 UTC

test: topology: fix build with latest alsa-lib

Remove the extra space to make the topology build with upstream
alsa-lib.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
(cherry picked from commit fcfd5d65be08f01598174bc574834b29d733a347)

cml-008-patch-backport2 2022-03-31 23:43:57 UTC
dmic: change spin_lock to spin_try_lock in dmic_work()

Author: Bartosz Kokoszko
Author Date: 2019-11-08 10:09:51 UTC

dmic: change spin_lock to spin_try_lock in dmic_work()

In order to avoid dead locks in dmic_work I've replaced
spin_lock() with spin_try_lock(). In case when
spin_try_lock() fails we reschedule dmic work.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
(cherry picked from commit 6a0cf6740f705e216a3d132c8b05b84d2f8d0bad)

ipc4-sdw-amp-topology 2022-03-25 09:19:45 UTC
[WIP][TEST] Add SDW speaker amp support

Author: Yong Zhi
Author Date: 2022-03-18 22:52:02 UTC

[WIP][TEST] Add SDW speaker amp support

Add SPK to match BE in the following order:

SDW0-Playback, id 0
SDW0-Capture, id 1
SDW1-Playback, id 2
SDW2-Playback, id 3

Signed-off-by: Yong Zhi <yong.zhi@intel.com>

aic_test 2022-03-21 17:37:56 UTC
[WIP][TEST] Add SDW speaker amp and DMIC support

Author: Yong Zhi
Author Date: 2022-03-18 22:52:02 UTC

[WIP][TEST] Add SDW speaker amp and DMIC support

Add SPK and DMIC to match BE in the following order:

SDW0-Playback, id 0
SDW0-Capture, id 1
SDW2-Playback, id 2
SDW2-Capture, id 3
dmic01, id 4

Signed-off-by: Yong Zhi <yong.zhi@intel.com>

topic/z-disable-sa 2022-03-16 18:05:03 UTC
platform: disable system agent on Zephyr builds

Author: Kai Vehmanen
Author Date: 2022-03-16 17:59:36 UTC

platform: disable system agent on Zephyr builds

The system agent is not required with SOF Zephyr builds
as the Zephyr ll scheduler implementation can track DSP
load and print periodic status of the load and any observed
overruns in scheduling.

Disabling agent is beneficial as agent can create a lot of DMA traffic
when DMA trace is enabled. This happens if there is jitter in agent
execution, with delta slightly over the warning threshold. This can
itself worsen the scheduling variation and lead to actual problems.

BugLink: https://github.com/thesofproject/sof/issues/5556
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>

imx-stable-v2.0 2022-03-07 12:12:46 UTC
audio_buffer: Allow NULL to be passed to buffer_free

Author: Daniel Baluta
Author Date: 2022-02-25 18:28:22 UTC

audio_buffer: Allow NULL to be passed to buffer_free

This will allow users to pass NULL to buffer_free.

This fixes codec_adapter_free crash, where mod->local_buff is only
allocated when the module is prepared.

With dynamic pipelines we could have the situation where the pipeline
is created then SOF device enters suspend and pipeline is destroyed.

Thus we try to free unallocated mod->local_buf. Fix this by allowing
buffer_free to live free when receiving a NULL pointer.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>

lrg/topic/reloc-wip 2022-01-10 15:26:33 UTC
core: modules: Add external module template

Author: Liam Girdwood
Author Date: 2022-01-10 15:25:47 UTC

core: modules: Add external module template

Template code showing how to create an external module.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

imx-stable-v1.9 2021-12-08 08:53:48 UTC
topology: 8ulp: Change sample rate to 8K

Author: Zhang Peng
Author Date: 2021-12-03 11:41:00 UTC

topology: 8ulp: Change sample rate to 8K

As changed SAI to 8Khz, then modify tplg file to
match this.

Signed-off-by: Zhang Peng <peng.zhang_8@nxp.com>

1100 of 181 results
This repository contains Public information 
Everyone can see this information.