Skip to content

Commit

Permalink
Lib: Add to dai-legacy.h "struct dai" new member "type"
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
singalsu committed Oct 8, 2024
1 parent af55b45 commit b161410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/include/sof/lib/dai-legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b161410

Please sign in to comment.