All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ricardo Biehl Pasquali <pasqualirb@gmail.com>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: alsa-devel@alsa-project.org
Subject: Re: Coherence of status structure after SYNC_PTR
Date: Fri, 28 Dec 2018 14:28:24 -0200	[thread overview]
Message-ID: <20181228162824.GA28189@localhost.localdomain> (raw)
In-Reply-To: <20181228042124.GA30249@workstation>

On Fri, Dec 28, 2018 at 01:21:24PM +0900, Takashi Sakamoto wrote:
> On Fri, Dec 28, 2018 at 12:45:49PM +0900, Takashi Sakamoto wrote:
> > I note that there're some levels of timestamp and autio timestamp.
> > Additionally, audio timestamp is updated only in any hardware/software IRQs,
> > thus it's not available with 'no-period-wakeup' runtime, FYI.
> 
> Oops. No, the audio timestamp can be updated in updating process of
> hardware pointer. A call of ioctl with SNDRV_PCM_IOCTL_STATUS and
> SNDRV_PCM_IOCTL_STATUS_EXT can return updated audio timestamp.

Thank you for the explanation!

Regarding the alsa-lib, pcm_hw, htimestamp():

Although not needed, adding a 'break' in the loop when
'mmap_status_fallbacked' is true would avoid another ioctl.

Cheers!

	pasquali

      reply	other threads:[~2018-12-28 16:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-27 17:22 Coherence of status structure after SYNC_PTR Ricardo Biehl Pasquali
2018-12-28  3:45 ` Takashi Sakamoto
2018-12-28  4:21   ` Takashi Sakamoto
2018-12-28 16:28     ` Ricardo Biehl Pasquali [this message]

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=20181228162824.GA28189@localhost.localdomain \
    --to=pasqualirb@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=o-takashi@sakamocchi.jp \
    /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.