<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:jjardon@gnome.org" title="Javier Jardón <jjardon@gnome.org>"> <span class="fn">Javier Jardón</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [alsa] Need to ensure same clock is used for smoother put and get"
href="https://bugs.freedesktop.org/show_bug.cgi?id=64643">bug 64643</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Hardware</td>
<td>Other
</td>
<td>All
</td>
</tr>
<tr>
<td style="text-align:right;">Summary</td>
<td>[alsa] Should check for
</td>
<td>[alsa] Need to ensure same clock is used for smoother put and get
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [alsa] Need to ensure same clock is used for smoother put and get"
href="https://bugs.freedesktop.org/show_bug.cgi?id=64643#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [alsa] Need to ensure same clock is used for smoother put and get"
href="https://bugs.freedesktop.org/show_bug.cgi?id=64643">bug 64643</a>
from <span class="vcard"><a class="email" href="mailto:jjardon@gnome.org" title="Javier Jardón <jjardon@gnome.org>"> <span class="fn">Javier Jardón</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>