All of lore.kernel.org
 help / color / mirror / Atom feed
* More snd_pcm_ioplug_avail_update() questions
@ 2018-07-25 21:52 Rob Duncan
  2018-07-26  7:04 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Rob Duncan @ 2018-07-25 21:52 UTC (permalink / raw)
  To: alsa-devel

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-07-31  8:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-25 21:52 More snd_pcm_ioplug_avail_update() questions Rob Duncan
2018-07-26  7:04 ` Takashi Iwai
2018-07-26 14:19   ` Rob Duncan
2018-07-26 14:37     ` Takashi Iwai
2018-07-26 15:02       ` Rob Duncan
2018-07-26 15:14         ` Takashi Iwai
2018-07-30 18:55           ` Rob Duncan
2018-07-31  8:21             ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.