Skip to content

Commit

Permalink
Audio: Remove DMA operations from simulated Zephyr DAI
Browse files Browse the repository at this point in the history
With this change the DAI just consumes all playback samples
and produces capture samples.

In the playback direction the consumed samples are checked for
glitches. The detection traces a warning when sample differs
from previous PCM code value with more than 1.

In the capture direction the generated PCM samples are triangle
waveform where every sample is incremented by 1. If maximum
PCM value is reached the samples are decremented. In beginning even
channels count up and odd channels count down.

Signed-off-by: Seppo Ingalsuo <[email protected]>
  • Loading branch information
singalsu committed Feb 6, 2024
1 parent 90fe61c commit cce60bd
Show file tree
Hide file tree
Showing 3 changed files with 291 additions and 431 deletions.
Loading

0 comments on commit cce60bd

Please sign in to comment.