All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Duncan <rduncan@tesla.com>
To: alsa-devel@alsa-project.org
Subject: More snd_pcm_ioplug_avail_update() questions
Date: Wed, 25 Jul 2018 14:52:36 -0700	[thread overview]
Message-ID: <dw77emin53c7a3.fsf@tesla.com> (raw)

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.

             reply	other threads:[~2018-07-25 21:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-25 21:52 Rob Duncan [this message]
2018-07-26  7:04 ` More snd_pcm_ioplug_avail_update() questions 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dw77emin53c7a3.fsf@tesla.com \
    --to=rduncan@tesla.com \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.