All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pannaga Bhushan <bhushan@multitech.co.in>
To: "alsa-devel@lists.sourceforge.net" <alsa-devel@lists.sourceforge.net>
Subject: pcm_lib.c . how does delta show wrong int. ack?
Date: Mon, 21 Oct 2002 09:21:16 +0530	[thread overview]
Message-ID: <3DB379B4.762BC79E@multitech.co.in> (raw)


Hi all,
         In the file pcm_lib.c and in the funtion -
snd_pcm_hw_ptr_interrupt() ,  there are the following lines --

-----------------

delta = hw_ptr_interrupt - new_hw_ptr;
if(delta > 0) {
    if( delta < runtime->buffer_size / 2) {
        snd_printd("Unexpected hw_pointer value .... wrong interrupt
acknowledge?\n"...);
        return 0;
    }
    runtime->hw_ptr_base += runtime->buffer_size;
    -------
    ------
    -------
}

-----------------

Can you pls clarify what these lines are doing? what is the significance
of delta and the significance of delta > 0 but less than
runtime->buffer_size/2   being a case of wrong interrupt ack.

thanx in advance,
Pannaga Bhushan


-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD

                 reply	other threads:[~2002-10-21  3:51 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=3DB379B4.762BC79E@multitech.co.in \
    --to=bhushan@multitech.co.in \
    --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.