<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#c8">Comment # 8</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:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
        <pre>One important difference is that the configured sink latency is much lower with
3.12.25 than with 3.12.28. I don't know how the kernel could affect that,
though, except by varying the maximum sink buffer size, but in this case it
seems that with both kernels the sink buffer size is the same.

The configured sink latency is determined by what applications request. In this
case there are shairport and LightSone connected to the sink (LightSone is
actually connected to the monitor source of the sink, but if LightSone requests
low latency from the source, that request will propagate to the monitored sink
also). If shairport or LightSone have different latency configuration between
the kernels, that would explain the difference in the configured sink latency.
(The configured latency of the monitor source is the same in both cases,
though, which suggests that LightSone is not to blame here). To get information
about what latencies the applications request, you could attach (as an
attachment, not in the comment!) the verbose log of pulseaudio in both cases.
See <a href="https://wiki.ubuntu.com/PulseAudio/Log">https://wiki.ubuntu.com/PulseAudio/Log</a> for instructions.

It's unexpected that lower latency leads to lower cpu use. Is it possible that
the cpu runs at a lower speed with 3.12.28, causing higher figures in top? Here
is some information about cpu speed scaling on Raspberry Pi:
<a href="http://with-raspberrypi.blogspot.com/2014/03/cpu-frequency.html">http://with-raspberrypi.blogspot.com/2014/03/cpu-frequency.html</a></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>