All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manuel Jander <manuel.jander@mat.utfsm.cl>
To: Alsa Devel list <alsa-devel@lists.sourceforge.net>
Subject: Unexpected hw_pointer value (pcm_lib.c)
Date: Sun, 12 Oct 2003 13:27:14 -0400	[thread overview]
Message-ID: <1065979634.1786.56.camel@localhost> (raw)

Hello,

Can anyone tell me how does pcm_lib.c cope with buffer wrap around ?
I'm missing something like:

delta =  pointer_current - pointer_prev;
if (delta < 0)
   delta += period_size;
 
Well, indeed i'm getting some warnings then and when, after i enabled
the ALSA debug option:

ALSA sound/core/pcm_lib.c:216: Unexpected hw_pointer value (stream = 0,
delta: -586, max jitter = 8192): wrong interrupt acknowledge?

Delta has a negative value, thus the if statement :

if ((snd_pcm_uframes_t)delta < runtime->buffer_size / 2) {
    snd_printd("Unexpected hw_pointer value (stream = %i, d
    return 0;
}

... is always true. Well, as the code looks like, the situation when the
period pointer wraps around back to cero isn't handled correctly. Or is
that handled by other means ? Maybe i just oversaw something. Can anyone
give me more insight over this ? Thanks...

Best Regards

Manuel Jander.




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php

                 reply	other threads:[~2003-10-12 17:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1065979634.1786.56.camel@localhost \
    --to=manuel.jander@mat.utfsm.cl \
    --cc=alsa-devel@lists.sourceforge.net \
    /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.