From: Giuliano Pochini <pochini@shiny.it>
To: Lee Revell <rlrevell@joe-job.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: "Unexpected hw_pointer value - wrong interrupt
Date: Thu, 15 Jul 2004 12:41:23 +0200 (CEST) [thread overview]
Message-ID: <XFMail.20040715124123.pochini@shiny.it> (raw)
In-Reply-To: <1089744973.20381.53.camel@mindpipe>
On 13-Jul-2004 Lee Revell wrote:
>> > Jul 12 17:31:43 mindpipe kernel: ALSA /usr/src/alsa-cvs-1.0.5/alsa-driver/alsa-kernel/core/pcm_lib.c:199:
>> > Unexpected hw_pointer value [1] (stream = 0, delta: -16, max jitter = 32): wrong interrupt acknowledge?
>>
>> The message appears when an unexpected DMA pointer is read in the
>> interrupt handler. Either the handling of irq was delayed more than
>> the buffer size, an irq is issued at the wrong timing, or the DMA
>> pointer reigster is somehow screwed up.
>>
>> Since you're using quite small buffer, I guess the former case.
>>
>
> I thought this was what an XRUN was, when the handling of the irq is
> delayed more than the buffer size. Sometimes these messages are
> associated with XRUNs, sometimes not.
>
> Is this a kernel issue, ALSA midlevel issue, or driver issue?
It is associated with an xrun when it is the cause of the xrun,
most likely, and it happens more frequently if you're using a
short buffer formed by two periods only.
A lot of things can cause it. The most common are: Some code path
in the kernel keeps interrupts disabled too long or the hardware
does not send the IRQ quickly enough or the dma counter is not up
to date when the driver reads it.
For example my driver had that problem until I figured out that
the IRQ is delivered only at addresses aligned to the lenght of
32 frames. I fixed it placing a _constaint_step() on the period
size and on the buffer size.
--
Giuliano.
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
next prev parent reply other threads:[~2004-07-15 10:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-13 0:38 "Unexpected hw_pointer value - wrong interrupt acknowledge?" with emu10k1 Lee Revell
2004-07-13 16:26 ` Takashi Iwai
2004-07-13 18:56 ` Lee Revell
2004-07-15 10:41 ` Giuliano Pochini [this message]
2004-07-15 21:26 ` "Unexpected hw_pointer value - wrong interrupt Lee Revell
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=XFMail.20040715124123.pochini@shiny.it \
--to=pochini@shiny.it \
--cc=alsa-devel@lists.sourceforge.net \
--cc=rlrevell@joe-job.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.