Is it possible to get audio via optical out AND hdmi?
#1
Hello,
I was just wondering if it would be possible to get audio using optical out and also hdmi. So I would like to get sound using my 5.1 soundsystem and also by using the builtin audio from my tv.
Is that possible?

Thanks!
Reply
#2
yes it is, I have that setup on my revo, will see if I can find the original post with the guide

mmm, cant find the post I used but essentially you need to configure a .asoundrc file which specifies all of the sound sources and defines a 'both' option such that it outputs to both. My asoundrc fil has somehow returned to the old HDMI only format, hadnt noticed since my 5.1 system is boxed for a house move. If I find the post I will add it there
Acer Revo 3610 : 2GB RAM : 320GB HDD : Ubuntu 10.4.1 : XBMC dharma final : Sony Bavia 40" over HDMI
Reply
#3
this post has a similar attempt to how I did it but is not the post I originally used so not tested

http://forum.xbmc.org/showthread.php?tid...t=asoundrc
Acer Revo 3610 : 2GB RAM : 320GB HDD : Ubuntu 10.4.1 : XBMC dharma final : Sony Bavia 40" over HDMI
Reply
#4
Yes. change your /etc/asound.conf file to be the text below and set your sound settings to be digital out and digital out to be default. Beware though, there is a slight sync difference between HDMI and optical.

Code:
#
# Make everything go out of the "2ip_to4op" port by default
#
pcm.!default {
        type plug
        slave {
                pcm "2ip_to_4op"
        }
}

#
# Define the "2ip_to_4op" port
#   Here it is a router that takes 2 input channels
#   and routes them to 4 output channels for the pcm.multi pcm to take
#   It defines a 4 channel output with the slave command
#   and then routes channel 0 input to channel 0 & 2 output
#   and routes channel 1 to outputs 1 and 3
#   all with a unitary gain
#
# See: http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
# or:  http://alsa.opensrc.org/SurroundSound
# for more information
#
pcm.2ip_to_4op {
        type route
        slave {
                pcm multi
                channels 4
        }
        ttable.0.0 1.0
        ttable.1.1 1.0
        ttable.0.2 1.0
        ttable.1.3 1.0
}

#
# Define the S/PDIF output (hw:0,1) as "digital_1"
pcm.digital_1 {
        type hw
        card 0
        device 1
        channels 2
}

#
# Define the HDMI output (hw:0,3) as "digital_2"
pcm.digital_2 {
        type hw
        card 0
        device 3
        channels 2
}

#
# Define the multi process which takes it's 4 channel input from
# the "2ip_to_4op" pcm process. The device type plugin is a multi
# and defines two slave outputs (a and b). It then binds channels 0
# and 1 to slave.a channels 0 and 1 and binds channels 2 and 3 to
# slave.b channels 0 and 1.
#
pcm.multi {
        type multi
        slaves.a {
                pcm "digital_1"
                channels 2
        }

        slaves.b {
                pcm "digital_2"
                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
}
Reply

Logout Mark Read Team Forum Stats Members Help
Is it possible to get audio via optical out AND hdmi?0