<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Rewinding results in omitted samples"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98674">98674</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Rewinding results in omitted samples
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>ARM
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>alsa
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kai.ruhnau@target-sg.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=127891" name="attach_127891" title="Test tone">attachment 127891</a> <a href="attachment.cgi?id=127891&action=edit" title="Test tone">[details]</a></span>
Test tone

I'm running my Yocto distribution (morty with PulseAudio 9.0) with Linux 4.7 on
an i.MX6SX platform containing a Wolfson WM9715 codec driven by the wm9712
driver.

I'm trying to play a small test wav file with about 100ms duration (see
attachment). I can successfully use aplay on the hardware device directly.

When I use PulseAudio to play that file (for example through aplay or by
upload-sample/play-sample), sometimes samples at the beginning are omitted and
don't reach the analog audio output (see following attachments).

It doesn't happen if this is the first time something is played after the
server has started. It then happens every time (with varying number of samples)
until the alsa card is suspended. It then again doesn't happen once after the
card is unsuspended.

After a small IRC session, I already have disabled the rewinding code
(<a href="https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/alsa-sink.c?id=8887f256e0f1167e579a217387a4efc5397edf93#n1649">https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/alsa-sink.c?id=8887f256e0f1167e579a217387a4efc5397edf93#n1649</a>)
and this makes the problem go away, but I'd be surprised if this was even close
to an actual solution.</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>