From d118b6c1fa21c8cff1fa6752e3f78b872b0156fd Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 1 Oct 2024 18:28:13 +0300 Subject: [PATCH 1/2] Lib: Add to dai-legacy.h struct copier_gain_params for testbench The new copier gain feature needs this structure. The added member is copied directly from dai-zephyr.h. Testbench IPC4 is using legacy DAI definitions instead of Zephyr DAI to avoid to include a lot of difficult dependencies. Build of testbench fails if dai-legacy.h does not contain this. Signed-off-by: Seppo Ingalsuo --- src/include/sof/lib/dai-legacy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/sof/lib/dai-legacy.h b/src/include/sof/lib/dai-legacy.h index 6594c84be76a..eb1cc5984bef 100644 --- a/src/include/sof/lib/dai-legacy.h +++ b/src/include/sof/lib/dai-legacy.h @@ -210,6 +210,9 @@ struct dai_data { /* llp slot info in memory windows */ struct llp_slot_info slot_info; + + /* Copier gain params */ + struct copier_gain_params *gain_data; }; struct dai { From b7b5c20f62ee2ffa002789ff64539dc07cb0bb14 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Wed, 2 Oct 2024 13:00:29 +0300 Subject: [PATCH 2/2] Audio: Copier: Remove not necessary header for testbench build The include of dai-zephyr.h causes IPC4 testbench build to fail due to further include of Zephyr headers. Since the copier_generic.c build is not needing it, it can be removed. The HiFi build version copier_hifi.c is already without this include. Signed-off-by: Seppo Ingalsuo --- src/audio/copier/copier_generic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/audio/copier/copier_generic.c b/src/audio/copier/copier_generic.c index b166bc77ed2f..ac9e900e9157 100644 --- a/src/audio/copier/copier_generic.c +++ b/src/audio/copier/copier_generic.c @@ -10,7 +10,6 @@ #include #include #include "copier.h" -#include LOG_MODULE_DECLARE(copier, CONFIG_SOF_LOG_LEVEL);