All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlo Wood <carlo@alinoe.com>
To: "alsa-devel@lists.sourceforge.net" <alsa-devel@lists.sourceforge.net>
Subject: snd_pcm_mmap_begin returns 0 but sets areas to NULL
Date: Tue, 22 Jul 2003 15:51:58 +0200	[thread overview]
Message-ID: <20030722135158.GA12258@alinoe.com> (raw)

Is it ever allowed that:

    snd_pcm_channel_area_t const* areas;
    snd_pcm_uframes_t offset;
    snd_pcm_uframes_t size = period_size;
    if (size > 0)
    {
      snd_pcm_uframes_t frames = size;
      int err = snd_pcm_mmap_begin(handle, &areas, &offset, &frames);

returns err == 0, but results in areas == NULL ?

Or is that a bug in alsa?

-- 
Carlo Wood <carlo@alinoe.com>


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

             reply	other threads:[~2003-07-22 13:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-22 13:51 Carlo Wood [this message]
2003-07-22 14:38 ` snd_pcm_mmap_begin returns 0 but sets areas to NULL Carlo Wood
2003-07-22 16:02   ` Takashi Iwai
2003-07-23  7:00   ` Jaroslav Kysela
2003-07-23  6:57 ` Jaroslav Kysela

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=20030722135158.GA12258@alinoe.com \
    --to=carlo@alinoe.com \
    --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.