Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Clemens Ladisch" <cladisch@fastmail.net>
To: Zephiris <zephiris@gmail.com>, alsa-devel@lists.sourceforge.net
Subject: Re: ATI IXP hardware mixing
Date: Fri, 15 Sep 2006 09:28:33 +0200	[thread overview]
Message-ID: <1158305313.19232.270994168@webmail.messagingengine.com> (raw)
In-Reply-To: <eebtj7$qrn$1@sea.gmane.org>

Zephiris wrote:
> I'm trying to get the ATI IXP driver to use hardware mixing.
> [...] all I want is to know is what to change in the source that needs
> to support it, since several glances through the source and brief API
> docs, as well as mailing lists, etc, don't reveal effectively nothing
> supporting hardware mixing at all.

It's documented in the description of snd_pcm_new() in the section
"Constructors":
| The fourth and fifth arguments are the number of substreams for
| playback and capture, respectively. [...]
| If a chip supports multiple playbacks or captures, you can specify
| more numbers, but they must be handled properly in open/close, etc.
| callbacks. When you need to know which substream you are referring to,
| then it can be obtained from struct snd_pcm_substream data passed to
| each callback as follows:
| 
|   struct snd_pcm_substream *substream;
|   int index = substream->number;

Then you have to use that index to access the corresponding DMA engine
of the hardware.


Regards,
Clemens

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

      parent reply	other threads:[~2006-09-15  7:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-14 14:19 ATI IXP hardware mixing Zephiris
2006-09-14 14:58 ` Lee Revell
2006-09-14 15:16   ` Zephiris
2006-09-14 15:29     ` Lee Revell
2006-09-14 15:47       ` Zephiris
2006-09-14 15:55         ` Lee Revell
2006-09-15  7:28         ` Clemens Ladisch [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=1158305313.19232.270994168@webmail.messagingengine.com \
    --to=cladisch@fastmail.net \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=zephiris@gmail.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