HOW-TO : Configure multiple simultaneous audio outputs in linux (hdmi,spdif,analog)
#9
@Loto_Bak

You rock, and now so do I! Thank you for posting this. I was able to do a minor tweak and get my Arcam rDac and my analog output to work simultaneously.

For anyone else looking to get their Arcam working rDac the key for me was using the alsa "plughw:X,Y" device. Also, here's my hacked .asoundrc:

# .asoundrc file designed to expand 2 channels through device 'clone_output'
# to output 2 channels to multiple devices
#
# caveats : no mixed output (no crossfading, no multiple applications) also
# sync will drift between the devices (rarely do i see mine drift though)
#
# designed around a nvidia ION1 zotac board. You may need to change
# device names.
# Use aplay -l to find device numbers
#
# questions contact Loto_Bak on forums.xbmc.org
#----
pcm.!default {
type plug
slave.pcm "dmixed_hdmi"
}
#-----
# Single channel dmixed. Crossfade works
#-----
pcm.hdmiout {
type plug
slave.pcm "dmixed_hdmi"
}

pcm.dmixed_hdmi {
type dmix
ipc_key 2024
slave {
pcm "hw:0,3" # hdmi
}
}
#-----
# multiple output portion begin (3 devices) dmix not supported.
#-----

# use "clone_output" in XBMC for custom settings.
pcm.clone_output {
type plug
slave.pcm "6channel_expander"
}

pcm.multi_pcm_device {
type multi;
slaves.a.pcm "hw:0,3"; # hdmi
slaves.a.channels 2;
slaves.b.pcm "hw:0,0"; # analog
slaves.b.channels 2;
slaves.c.pcm "plughw:2,0"; # arcam
slaves.c.channels 2;
bindings.0.slave a;
bindings.0.channel 0;
bindings.1.slave a;
bindings.1.channel 1;
bindings.2.slave b;
bindings.2.channel 0;
bindings.3.slave b;
bindings.3.channel 1;
bindings.4.slave c;
bindings.4.channel 0;
bindings.5.slave c;
bindings.5.channel 1;
}

ctl.multi_pcm_device {
type hw;
card 0;
}
pcm.6channel_expander {
type route;
slave.pcm "multi_pcm_device";
slave.channels 6;
ttable.0.0 1;
ttable.1.1 1;
ttable.0.2 1;
ttable.1.3 1;
ttable.0.4 1;
ttable.1.5 1;
}
ctl.6channel_expander {
type hw;
card 0;
}
Reply


Messages In This Thread
[No subject] - by Eisi2005 - 2011-03-07, 10:09
[No subject] - by Loto_Bak - 2011-03-07, 19:07
[No subject] - by Eisi2005 - 2011-03-07, 21:05
[No subject] - by Belgium - 2011-03-08, 23:22
[No subject] - by Loto_Bak - 2011-03-09, 06:07
[No subject] - by Eisi2005 - 2011-03-09, 08:39
RE: HOW-TO : Configure multiple simultaneous audio outputs in linux (hdmi,spdif,analog) - by elliotn - 2012-03-23, 20:09
Logout Mark Read Team Forum Stats Members Help
HOW-TO : Configure multiple simultaneous audio outputs in linux (hdmi,spdif,analog)0