<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Issue of CPU usage with HiFiBerry driver snd_soc_hifiberry_amp with Debian Wheezy kernel 3.12.28"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84585#c90">Comment # 90</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Issue of CPU usage with HiFiBerry driver snd_soc_hifiberry_amp with Debian Wheezy kernel 3.12.28"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84585">bug 84585</a>
              from <span class="vcard"><a class="email" href="mailto:superquad.vortex2@gmail.com" title="Raymond <superquad.vortex2@gmail.com>"> <span class="fn">Raymond</span></a>
</span></b>
        <pre>623|   0.237) D: [alsa-sink] alsa-sink.c: Wakeup from ALSA!
(   9.623|   0.000) I: [alsa-sink] alsa-sink.c: Underrun!
(   9.623|   0.000) I: [alsa-sink] alsa-sink.c: Increasing wakeup watermark to
30.00 ms
(   9.879|   0.256) D: [alsa-sink] alsa-sink.c: Wakeup from ALSA!
(   9.880|   0.000) I: [alsa-sink] alsa-sink.c: Underrun!

how do pulseaudio revover these underruns?

seem appl_ptr is really behind hwptr and need snd_pcm_dump to verify

<a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/alsa-sink.c">http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/alsa-sink.c</a>

there was PA_DEBUG_TRAP 


(   9.880|   0.000) I: [alsa-sink] alsa-sink.c: Increasing wakeup watermark to
40.00 ms
(  10.136|   0.256) D: [alsa-sink] alsa-sink.c: Wakeup from ALSA!
(  10.137|   0.000) I: [alsa-sink] alsa-sink.c: Increasing wakeup watermark to
50.00 ms
(  10.393|   0.256) I: [alsa-sink] alsa-sink.c: Increasing wakeup watermark to
60.00 ms
(  10.650|   0.256) I: [alsa-sink] alsa-sink.c: Increasing wakeup watermark to
70.00 ms
(  10.907|   0.256) I: [alsa-sink] alsa-sink.c: Increasing wakeup watermark to
80.00 ms
(  11.164|   0.256) I: [alsa-sink] alsa-sink.c: Increasing wakeup watermark to
90.00 ms
(  11.421|   0.256) I: [alsa-sink] alsa-sink.c: Increasing wakeup watermark to
94.99 ms

seem no longer support 105ms anymore


(  11.678|   0.257) I: [alsa-sink] alsa-sink.c: Increasing minimal latency to
1.00 ms
(  11.679|   0.000) D: [alsa-sink] alsa-sink.c: Latency set to 105.00ms
(  11.679|   0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=334280
(  11.679|   0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=84012
(  11.680|   0.000) D: [alsa-sink] alsa-sink.c: Latency set to 105.00ms
(  11.680|   0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=334280
(  11.680|   0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=84012
(  11.935|   0.255) I: [alsa-sink] alsa-sink.c: Increasing minimal latency to
2.00 ms
(  11.936|   0.000) D: [alsa-sink] alsa-sink.c: Latency set to 105.00ms
(  11.936|   0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=334280
(  11.936|   0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=84012
(  11.937|   0.000) D: [alsa-sink] alsa-sink.c: Latency set to 105.00ms
(  11.937|   0.000) D: [alsa-sink] alsa-sink.c: hwbuf_unused=334280
(  11.937|   0.000) D: [alsa-sink] alsa-sink.c: setting avail_min=84012
(  12.192|   0.255) I: [alsa-sink] alsa-sink.c: Increasing minimal latency to
4.00 ms
(  12.193|   0.000) D: [alsa-sink] alsa-sink.c: Latency set to 105.00ms





    if (n_bytes <= u->hwbuf_size)
        left_to_play = u->hwbuf_size - n_bytes;
    else {

        /* We got a dropout. What a mess! */
        left_to_play = 0;
        underrun = true;

#if 0
        PA_DEBUG_TRAP;
#endif

        if (!u->first && !u->after_rewind)
            if (pa_log_ratelimit(PA_LOG_INFO))
                pa_log_info("Underrun!");
    }</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>