buf: add drop data / fill with silence for sink/source · saisurya-ch/sof@7028fad · GitHub
Skip to content

Commit 7028fad

Browse files
marcinszkudlinskilgirdwood
authored andcommitted
buf: add drop data / fill with silence for sink/source
Add "sink_fill_with_silence" and "source_drop_data" tools for sink/source. The tools will respectively drop given amount of data from source or fill sink witj silence. To be used when a module doesn't want to process data at the moment, but still needs to consume data at input and provide something at output Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
1 parent 1270b22 commit 7028fad

2 files changed

Lines changed: 76 additions & 0 deletions

File tree

src/audio/sink_source_utils.c

Lines changed: 60 additions & 0 deletions

src/include/sof/audio/sink_source_utils.h

Lines changed: 16 additions & 0 deletions

0 commit comments

Comments
 (0)