Schmidt, Christian Thorge wrote:
> On Tue, Oct 28, 2014 at 5:00 PM, Clemens Ladisch wrote:
>> There is no other chip with this silly design.
>
> Just out of curiosity: Why is this silly?
A single device that can stream multichannel data is much easier to
design, implement, and test than a bunch of independent stereo devices,
and requiring that software splits a multichannel stream into multiple
streams that must be synchronized increases the complexity of the
driver. The only explanation that somebody would design such a chip is
that they started with an already-working stereo-only device, and then
duct-taped several of those together.
>> If you want to play multiple streams through one multichannel card,
>> you have to merge them in software (i.e., use virtual devices based
>> on dmix or dshare).
>
> I have looked at the arch- and Ubuntu wikis for dmix info, but somehow
> I am not getting a good hang of it. Any pointers where to start
> reading on this?
Put this into your ~/.asoundrc or into /etc/asound.conf:
pcm.slave eightchannels {
pcm "hw:0,0" # or "hw:1,0" for the second card
channels 8
rate 48000
}
pcm.stereo1 {
type plug
slave.pcm {
type dshare
ipc_key 87882222 # some unique number
slave eightchannels
bindings [ 0 1 ]
}
}
pcm.stereo2 {
type plug
slave.pcm {
type dshare
ipc_key 87882222
slave eightchannels
bindings [ 2 3 ]
}
}
pcm.stereo3 {
type plug
slave.pcm {
type dshare
ipc_key 87882222
slave eightchannels
bindings [ 4 5 ]
}
}
pcm.stereo4 {
type plug
slave.pcm {
type dshare
ipc_key 87882222
slave eightchannels
bindings [ 6 7 ]
}
}
Regards,
Clemens
------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user