From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: alsa-devel@alsa-project.org
Subject: Re: [snd-usb-audio] frequent "delay: estimated xxx, actual yyy" messages
Date: Mon, 23 Apr 2012 12:43:11 -0500 [thread overview]
Message-ID: <4F9594AF.4090902@linux.intel.com> (raw)
In-Reply-To: <3172169.OcqrdKakkS@siegfried>
On 4/21/2012 5:22 AM, Guillaume Clement wrote:
> Hello,
>
> I am using an USB soundcard (ID : 046d:0a24 : Logitech Speaker Lapdesk N550).
>
> During playback, I have frequent messages like these :
>
> delay: estimated 795, actual 662
> delay: estimated 133, actual 0
> delay: estimated 751, actual 662
> delay: estimated 89, actual 0
>
>
> When those messages appear, I am hearing some "cracks" from the soundcard.
>
>
> I've tried to make some research on this, I only found some messages that hint
> about some interrupt problems. I'm not using any closed source driver and I
> can reproduce the issue with any computer running Linux.
>
>
> On interesting thing to notice is that it happens only when the CPU is near
> idle. To workaround the problem, I can just do something like :
>
> nice -n 20 dd if=/dev/zero of=/dev/null bs=1k count=500G
>
>
> This would keep my CPU busy and I have no more messages nor cracks.
I'm the one who introduced this warning when I added support for a
better delay estimate based on the frame counter instead of bytes
submitted (back in September 2011). When writing new data the estimate
using the frame counter and the byte count should be identical, but this
message shows something goes wrong.
Somehow I don't understand how a more precise delay would cause such
errors. The delay is only important for pulseaudio, it shouldn't affect
plain vanilla alsa. You could try and reverse the patch to see if this
improves anything? If not, you have another problem in your setup...
-Pierre
next prev parent reply other threads:[~2012-04-23 17:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-21 10:22 [snd-usb-audio] frequent "delay: estimated xxx, actual yyy" messages Guillaume Clement
2012-04-23 17:43 ` Pierre-Louis Bossart [this message]
2012-04-23 19:40 ` Guillaume Clement
2012-04-24 13:59 ` Clemens Ladisch
2012-04-25 18:06 ` Guillaume Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F9594AF.4090902@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).