Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: sarah.a.sharp@linux.intel.com, alsa-devel@alsa-project.org
Subject: Re: [PATCH v2] ALSA: usb: refine delay information with USB frame counter
Date: Sun, 11 Sep 2011 17:49:12 +0200	[thread overview]
Message-ID: <4E6CD878.2090606@ladisch.de> (raw)
In-Reply-To: <1315354534-5995-1-git-send-email-pierre-louis.bossart@linux.intel.com>

Pierre-Louis Bossart wrote:
> Existing code only updates the audio delay when URBs were
> submitted/retired. This can introduce an uncertainty of 8ms
> on the number of samples played out with the default settings,
> and a lot more when URBs convey more packets to reduce the
> interrupt rate and power consumption.
>
> This patch relies on the USB frame counter to reduce the
> uncertainty to less than 2ms worst-case. The delay information
> essentially becomes independent of the URB size and number of
> packets. This should help applications like PulseAudio which
> require accurate audio timing. Clemens Ladisch
> <clemens@ladisch.de> reported a decrease of mplayer's
> A-V difference from nrpacks down to at most 1ms.
>
> Thanks to Clemens for also pointing out that the implementation
> of frame counters varies between different HCDs. Only the
> 8 lowest-bits are used to estimate the delay.
>
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

Applied, thanks!


Clemens

      reply	other threads:[~2011-09-11 15:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-07  0:15 [PATCH v2] ALSA: usb: refine delay information with USB frame counter Pierre-Louis Bossart
2011-09-11 15:49 ` Clemens Ladisch [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=4E6CD878.2090606@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=sarah.a.sharp@linux.intel.com \
    /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