[pulseaudio-tickets] [Bug 64643] [alsa] Need to ensure same clock is used for smoother put and get

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 15 10:28:46 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=64643

Javier Jardón <jjardon at gnome.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|Other                       |All
            Summary|[alsa] Should check for     |[alsa] Need to ensure same
                   |                            |clock is used for smoother
                   |                            |put and get

--- Comment #1 from Javier Jardón <jjardon at gnome.org> ---
When setting the smoother in the alsa modules we use the htimestamp, but when
interpolating (using get) we use pa_rtclock. pa_rtclock is not guaranteed to be
the same as htimestamp.

Specifically in the case where CLOCK_MONOTONIC is not defined, alsa will use
getnstimeofday.
Also in the case where HAVE_CLOCK_GETTIME is not defined in alsa-lib (can
happen in Android) then alsa-lib will not use CLOCK_MONOTONIC.

The fix is to use snd_pcm_status to get the time from alsa when calculating
latency.

A less accurate alternative would be to simply use pa_rtclock_get during the
smoother_put.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20130515/109f8beb/attachment.html>


More information about the pulseaudio-bugs mailing list