Re: ATI IXP hardware mixing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux