From b16141003c4e13fdcff8137c58be245da2e4746b Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 8 Oct 2024 11:45:22 +0300 Subject: [PATCH] Lib: Add to dai-legacy.h "struct dai" new member "type" The IPC4 testbench build fails without this change in copier_gain.c switch case to check for dd->dai->type for DMIC. Testbench is using the legacy header to avoid to include zephyr drivers headers with a lot more dependencies. Signed-off-by: Seppo Ingalsuo --- src/include/sof/lib/dai-legacy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/sof/lib/dai-legacy.h b/src/include/sof/lib/dai-legacy.h index eb1cc5984bef..9408b6c27414 100644 --- a/src/include/sof/lib/dai-legacy.h +++ b/src/include/sof/lib/dai-legacy.h @@ -217,6 +217,7 @@ struct dai_data { struct dai { uint32_t index; /**< index */ + uint32_t type; /**< added for dai-zephyr.h compatibility */ struct k_spinlock lock; /**< locking mechanism */ int sref; /**< simple ref counter, guarded by lock */ struct dai_plat_data plat_data;