Skip to content

Commit

Permalink
Audio: Start add simulated DAI and host component
Browse files Browse the repository at this point in the history
These replace the real dai-zephyr.c and host-zephyr.c if
enabled in Kconfig. Simulation versions are copies of the
originals without changes.

Signed-off-by: Seppo Ingalsuo <[email protected]>
  • Loading branch information
singalsu committed Feb 6, 2024
1 parent 45dc968 commit 90fe61c
Show file tree
Hide file tree
Showing 5 changed files with 2,868 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/boards/intel_adsp_cavs25.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ CONFIG_PM_POLICY_CUSTOM=y
CONFIG_CLOCK_CONTROL_ADSP=y
CONFIG_CLOCK_CONTROL=y

CONFIG_ZEPHYR_SIMULATED_HOST_DRIVER=y
CONFIG_ZEPHYR_SIMULATED_DAI_DRIVER=y
CONFIG_ZEPHYR_NATIVE_DRIVERS=y
CONFIG_DAI=y
CONFIG_DAI_INIT_PRIORITY=70
Expand Down
19 changes: 19 additions & 0 deletions src/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,23 @@ config DAI_VERBOSE_GLITCH_WARNINGS
always emit a warning. This option useful to debug issues with
DAI DMA operation and issues with low-latency scheduling.


config ZEPHYR_SIMULATED_HOST_DRIVER
bool "Simulate host component"
default n
help
Blah blah blah blah
blah blah blah
blah blah
blah

config ZEPHYR_SIMULATED_DAI_DRIVER
bool "Simulate DAI component"
default n
help
Blah blah blah blah
blah blah blah
blah blah
blah

endmenu
Loading

0 comments on commit 90fe61c

Please sign in to comment.