25 Jul
2018
25 Jul
'18
9:52 p.m.
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.