From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Dylan Reid <dgreid@chromium.org>
Cc: Takashi Iwai <tiwai@suse.de>, alsa-devel@alsa-project.org
Subject: Re: [PATCH v2] ALSA: hda - Apply codec delay to wallclock.
Date: Wed, 10 Apr 2013 07:29:32 -0700 [thread overview]
Message-ID: <5165774C.2000507@linux.intel.com> (raw)
In-Reply-To: <CAEUnVG4g--gJo5XjUub3do8acAjqDXeu_GSrDPY=tZ0QfwLPoA@mail.gmail.com>
>>
>>> + return (nsec > codec_nsecs) ? nsec - codec_nsecs : 0;
>>
>>
>> Is this correct? I would think for capture you need to add the delay, and
>> subtract it for playback?
>
> Should the capture timestamp represents the wall time when the sample
> is converted by the A-to-D? If so, would be the correct time be the
> codec delay nsec before what is reported here?
For playback audio_timestamp = wallclk - codec_delay_in_nsec
for capture audio_timestamp = wallclk + codec_delay_in_nsec
next prev parent reply other threads:[~2013-04-10 14:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-09 1:20 [PATCH v2] ALSA: hda - Apply codec delay to wallclock Dylan Reid
2013-04-09 6:03 ` Takashi Iwai
2013-04-10 3:55 ` Pierre-Louis Bossart
2013-04-10 5:30 ` Dylan Reid
2013-04-10 14:29 ` Pierre-Louis Bossart [this message]
2013-04-10 15:16 ` Takashi Iwai
2013-04-12 1:17 ` Pierre-Louis Bossart
2013-04-12 8:55 ` Takashi Iwai
2013-04-13 8:55 ` Takashi Iwai
2013-04-15 8:02 ` Dylan Reid
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=5165774C.2000507@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=dgreid@chromium.org \
--cc=tiwai@suse.de \
/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.