Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Abramo Bagnara <abramo.bagnara@libero.it>
To: Jaroslav Kysela <perex@perex.cz>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: [alsa-cvslog] CVS: alsa-lib/src/pcm pcm.c,1.222,1.223
Date: Wed, 09 Oct 2002 09:06:42 +0200	[thread overview]
Message-ID: <3DA3D582.4161E6F3@libero.it> (raw)
In-Reply-To: E17zA6Z-00073b-00@usw-pr-cvs1.sourceforge.net

Jaroslav Kysela wrote:
> 
> Update of /cvsroot/alsa/alsa-lib/src/pcm
> In directory usw-pr-cvs1:/tmp/cvs-serv27101
> 
> Modified Files:
>         pcm.c
> Log Message:
> Fixes in documentation for fast status
> 
> Index: pcm.c
> ===================================================================
> RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm.c,v
> retrieving revision 1.222
> retrieving revision 1.223
> diff -u -r1.222 -r1.223
> --- pcm.c       21 Sep 2002 19:01:24 -0000      1.222
> +++ pcm.c       9 Oct 2002 06:13:57 -0000       1.223
> @@ -373,16 +373,21 @@
>  parameters - avail_max and overrange are reset to zero after the status
>  call.
> 
> -\subsection pcm_status_fast Obtaining fast device status
> +\subsection pcm_status_fast Obtaining device status fast
> 
>  The function \link ::snd_pcm_avail_update \endlink updates the current
>  available count of samples for writing (playback) or filled samples for
> -reading (capture).
> +reading (capture). It is a light version of
> +\link ::snd_pcm_status_get_avail \endlink, because it does not require
> +the user <-> kernel context switch, but the value is less accurate,
> +because ring buffer pointers are updated in kernel drivers only when
> +an interrupt occurs.
>  <p>

Wrong here:
1) snd_pcm_status_get_avail is only an accessor method
2) snd_pcm_avail_update call is *needed* for chained PCM (to call
snd_pcm_status does not do the needed things).

-- 
Abramo Bagnara                       mailto:abramo.bagnara@libero.it

Opera Unica                          Phone: +39.546.656023
Via Emilia Interna, 140
48014 Castel Bolognese (RA) - Italy


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

           reply	other threads:[~2002-10-09  7:06 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <E17zA6Z-00073b-00@usw-pr-cvs1.sourceforge.net>]

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=3DA3D582.4161E6F3@libero.it \
    --to=abramo.bagnara@libero.it \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=perex@perex.cz \
    /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