[alsa-devel] More snd_pcm_ioplug_avail_update() questions
Rob Duncan
rduncan at tesla.com
Wed Jul 25 23:52:36 CEST 2018
Is it required that all available data has been committed between calls
to snd_pcm_ioplug_avail_update() on an IO plugin capture stream?
If this is not a requirement then there can still be uncommitted data in
the mmap after the current appl_ptr. This data will get overwritten by
the transfer call.
If it is a requirement then snd_pcm_rate_avail_update() seems to be
doing the wrong thing, because it only commits in units of the period
size, which means that there could be a partial period left in the mmap.
Can someone clarify what the contract is for these calls?
Thanks,
Rob.
More information about the Alsa-devel
mailing list