Alsa-Devel Archive on 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: pls clarify.
Date: Fri, 18 Oct 2002 09:35:03 +0530	[thread overview]
Message-ID: <3DAF886E.72345086@multitech.co.in> (raw)

Hi all,
         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: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm

                 reply	other threads:[~2002-10-18  4:05 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=3DAF886E.72345086@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox