alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Subhashini Rao Beerisetty <subhashbeerisetty@gmail.com>
To: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org
Subject: first and last audio sample timestamp
Date: Fri, 22 Jun 2018 19:30:10 +0530	[thread overview]
Message-ID: <CAPY=qRT-AvUiLFLTx7MzMzreLkWK8Fk06egUMCJsVJ7VwgziuA@mail.gmail.com> (raw)

[ Please keep me in CC as I'm not subscribed to the list]

Hi All,



Hello all,


I’m using aplay and arecord utilities for playback and capture. I need to
capture the timestamps for the first and last audio samples that arrive at
the driver level.

For this I’m capturing the CLOCK_MONOTONIC_RAW timestamp at the
.trigger(for playback & capture) callback in SNDRV_PCM_TRIGGER_START  case
– is it the correct timestamp for the first audio sample arrived at the
driver level?

Similarly does .trigger callbacks SNDRV_PCM_TRIGGER_STOP gives the last
audio sample timestamp?
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

             reply	other threads:[~2018-06-22 14:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-22 14:00 Subhashini Rao Beerisetty [this message]
2018-06-25 14:34 ` first and last audio sample timestamp Takashi Iwai
2018-06-25 14:50   ` Subhashini Rao Beerisetty
2018-06-25 14:53     ` Takashi Iwai
2018-06-25 14:58       ` Subhashini Rao Beerisetty
2018-06-25 15:08         ` 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='CAPY=qRT-AvUiLFLTx7MzMzreLkWK8Fk06egUMCJsVJ7VwgziuA@mail.gmail.com' \
    --to=subhashbeerisetty@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux-sound@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).