Sound Open Firmware
Loading...
Searching...
No Matches
audio_stream_hw.h File Reference

Synchronisation of an audio stream with the state of its DMA buffer. More...

Include dependency graph for audio_stream_hw.h:

Go to the source code of this file.

Functions

static void audio_stream_sync_to_hw (struct audio_stream *stream, const struct dma_status *dma_status)
 Replicates the hardware state of the DMA buffer as a struct audio_stream.
 

Detailed Description

Synchronisation of an audio stream with the state of its DMA buffer.

Kept separate from sof/audio/audio_stream.h because it needs the Zephyr DMA driver definitions, which most users of the audio stream API do not. Only available in Zephyr builds.

Function Documentation

◆ audio_stream_sync_to_hw()

static void audio_stream_sync_to_hw ( struct audio_stream *  stream,
const struct dma_status *  dma_status 
)
inlinestatic

Replicates the hardware state of the DMA buffer as a struct audio_stream.

Parameters
streamStream to update.
dma_statusDMA buffer hardware state (struct dma_status from Zephyr).