From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
To: alsa-devel@alsa-project.org
Cc: Andre Schramm <andre.schramm@iosono-sound.com>
Subject: Complex hw buffer with MMAP_COMPLEX?
Date: Tue, 09 Oct 2012 15:17:57 +0200 [thread overview]
Message-ID: <50742405.9070201@drcomp.erfurt.thur.de> (raw)
Hi!
I'm about to start working on the driver for the new RME MADI FX card
with its 194 input and 196 output channels.
I've noticed that the device has a rather uncommon hw buffer layout.
Let's stick to the input side for the sake of simplicity:
2ch AES, interleaved
8ch MADI 001-008, interleaved
8ch MADI 009-015, interleaved
[..]
8ch MADI 184-192, interleaved
On the output side, there is another stereo pair for headphones.
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? Or use MMAP_COMPLEX and then let every application deal with it
on its own? It's certainly not a problem to special-case the MADI FX in
jackd1 and jackd2, but OTOH, this would require other ALSA apps to do
the same (I'm thinking of proprietary custom code).
I wonder if we could afford to rearrange the buffers in the driver and
expose a single non-interleaved buffer to userspace.
WDYT?
TIA
next reply other threads:[~2012-10-09 13:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-09 13:17 Adrian Knoth [this message]
2012-10-09 13:49 ` Complex hw buffer with MMAP_COMPLEX? Clemens Ladisch
2012-10-09 14:09 ` Adrian Knoth
2012-10-09 14:19 ` Takashi Iwai
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=50742405.9070201@drcomp.erfurt.thur.de \
--to=adi@drcomp.erfurt.thur.de \
--cc=alsa-devel@alsa-project.org \
--cc=andre.schramm@iosono-sound.com \
/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