[pulseaudio-tickets] [Bug 84585] Issue of CPU usage with HiFiBerry driver snd_soc_hifiberry_amp with Debian Wheezy kernel 3.12.28

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Oct 16 01:32:28 PDT 2014


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

--- Comment #59 from Raymond <superquad.vortex2 at gmail.com> ---
your value are the time difference between iteration instead of time difference
between different abail


-      now_us = timespec_us(&now);
-        timestamp_us = timespec_us(&timestamp);

        if (avail1 < 0)
            break;
        if (avail != avail1) {

+           now_us = timespec_us(&now);
+           timestamp_us = timespec_us(&timestamp);


            fprintf(stderr, "now_us - last_us=%llu\t now_us - start_us=%llu\t
%llu\t Available: %d\t loop iteration: %d\n",
                (unsigned long long) (now_us - last_us),
                (unsigned long long) (now_us - start_us),
                (unsigned long long) (timestamp_us ? timestamp_us - start_us :
0),
                (int)avail1, j);

-- 
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/20141016/8ad5e298/attachment.html>


More information about the pulseaudio-bugs mailing list