Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: alberto Villa <a.villa@seletech.com>
To: alsa-devel@alsa-project.org
Subject: Using MMAP feature
Date: Mon, 23 Jul 2012 09:13:24 +0200	[thread overview]
Message-ID: <500CF994.5090901@seletech.com> (raw)

Hello,

I'm going to use the MMAP feature of ALSA. I understood I have to use 
snd_pcm_mmap_begin and snd_pcm_mmap_commit functions, but I can't 
understand the meaning of some parameters in  the snd_pcm_mmap_begin 
function: when I call this function in order to have access to the 
capture stream on a call like this:

err = snd_pcm_mmap_begin(capture, &c_area, &c_offset, &c_frames);

it keeps to return c_frames = 0: is it right ? what does  this mean? is 
the buffer full so that I can read samples or the available contiguous 
space to be read is 0?

Thank you,

Alberto

-- 
Dr. Villa Alberto
Sw Engineer

SeleTech srl
via Collodi, 8 20052 Monza (MI)
tel: +39 039 5962000
fax: +39 039 9716905
email: a.villa@seletech.com
web: www.seletech.com
      www.seletech.eu

             reply	other threads:[~2012-07-23  7:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-23  7:13 alberto Villa [this message]
2012-07-23 10:38 ` Using MMAP feature Clemens Ladisch
     [not found]   ` <500D40D5.6050606@seletech.com>
2012-07-23 14:46     ` Clemens Ladisch

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=500CF994.5090901@seletech.com \
    --to=a.villa@seletech.com \
    --cc=alsa-devel@alsa-project.org \
    /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