[alsa-devel] [PATCH 0/2] add pcm_file support in MMAP read access mode

Adam Miartus amiartus at de.adit-jv.com
Thu May 23 15:00:38 CEST 2019


adds support for overwritting input buffer in MMAP access mode for
in pcm_file plugin

new api pcm_fast_ops callback mmap_begin is introduced to ease the
operation needed to overwrite mmaped buffer. this allows to modify
only the next continuous part of data in ring buffer.

Adam Miartus (2):
  pcm: add mmap_begin callback to snd_pcm_fast_ops_t api
  pcm_file: add infile read support for mmap mode

 src/pcm/pcm.c       |  6 ++++++
 src/pcm/pcm_file.c  | 31 +++++++++++++++++++++++++++++++
 src/pcm/pcm_local.h |  1 +
 3 files changed, 38 insertions(+)

-- 
2.7.4



More information about the Alsa-devel mailing list