Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Cc: alsa-devel@alsa-project.org, Clemens Ladisch <clemens@ladisch.de>,
	Andre Schramm <andre.schramm@iosono-sound.com>
Subject: Re: Complex hw buffer with MMAP_COMPLEX?
Date: Tue, 09 Oct 2012 16:19:52 +0200	[thread overview]
Message-ID: <s5h4nm3g22f.wl%tiwai@suse.de> (raw)
In-Reply-To: <20121009140911.GK2040@ltw.loris.tv>

At Tue, 9 Oct 2012 16:09:11 +0200,
Adrian Knoth wrote:
> 
> On Tue, Oct 09, 2012 at 03:49:32PM +0200, Clemens Ladisch wrote:
> 
> > > That is, we're dealing with 25 (or 26 for output) interleaved streams
> > > with two or eight channels each.
> > >
> > > How could we represent such a layout in ALSA, that is, how are we
> > > talking to userspace? Would one create subdevices and rejoin them via
> > > plughw?
> > 
> > Is it possible to start/stop the streams independently?
> 
> No, there's only a single start/stop call for the entire card.
> 
> > > Or use MMAP_COMPLEX and then let every application deal with it
> > > on its own?
> > 
> > Alsa-lib can automatically convert this.
> 
> The only remaining question is how to tell alsa-lib about the buffer
> layout.

Pass SNDRV_PCM_INFO_COMPLEX to hw.info bit flags.
Then set up the channel_info via PCM ioctl ops.

> AFAIKS, there's not even a single driver that uses MMAP_COMPLEX atm.

Right.  So far only in alsa-lib plugins.


Takashi

      reply	other threads:[~2012-10-09 14:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-09 13:17 Complex hw buffer with MMAP_COMPLEX? Adrian Knoth
2012-10-09 13:49 ` Clemens Ladisch
2012-10-09 14:09   ` Adrian Knoth
2012-10-09 14:19     ` Takashi Iwai [this message]

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=s5h4nm3g22f.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=adi@drcomp.erfurt.thur.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=andre.schramm@iosono-sound.com \
    --cc=clemens@ladisch.de \
    /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