2013-11-06, 01:15
I modified Hawaltie's config from post 105 on Openelec 3.2.3 Generic build
http://forum.xbmc.org/showthread.php?tid...pid1435897
http://forum.xbmc.org/showthread.php?tid...pid1435897
Code:
pcm.!default {
type plug
slave {
pcm "both_digital"
}
}
# First we create a 'both' route, that has 4 channels
pcm.both_digital {
type route
slave {
pcm multi
channels 4
}
# And we route the channels 1:1
# 2 inputs (0-1) get mapped into 4 outputs (0-3)
# (this is how we copy channels)
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
}
# Then define a multi device that splits the 4-channel input
# Into 2x 2 output
pcm.multi {
type multi
slaves.a {
pcm "hdmi_hw"
channels 2
}
slaves.b {
pcm "dac_hw"
channels 2
}
# Bind stuff to the HDMI outputs
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
# And to the DAC outputs
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}
# And here is my actual hardware
# Note that this is linked to the output of 'aplay -l'
# HDMI output
pcm.hdmi_hw {
type hw
card 0
device 3
channels 2
}
# Stereo output
pcm.dac_hw {
type hw
card 0
device 7
channels 2
}