Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################################
- # Configuration to output sound in HDMI
- # and in Analog Sound Device Simultaneously
- ###############################################################
- # Begin Stereo Output
- # Joining two Sound Cards as the same sound output
- # This is only for 2 channels audio
- # Src: http://www.spinics.net/linux/fedora/alsa-user/msg09594.html
- pcm.TwoAsOne_Analog_dmix {
- type dmix
- ipc_key 170300
- # "hw:0,0" is Card 0 Device 0 - ALC889A Analog
- slave.pcm "hw:0,0"
- }
- pcm.TwoAsOne_HDMI_dmix {
- type dmix
- ipc_key 170310
- # "hw:1,9 is Card 1 Device 9 - NVidia HDMI
- slave.pcm "hw:1,9"
- }
- pcm.TwoSndcardAsOne {
- type multi
- slaves.a.pcm "TwoAsOne_Analog_dmix"
- slaves.a.channels 2
- slaves.b.pcm "TwoAsOne_HDMI_dmix"
- #slaves.b.pcm "hw:1,9"
- slaves.b.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
- }
- pcm.TwoAsOne {
- type route
- slave.pcm "TwoSndcardAsOne"
- ttable.0.0 1
- ttable.1.1 1
- ttable.0.2 1
- ttable.1.3 1
- }
- pcm.TwoAsOnePlug {
- type plug
- slave.pcm "TwoAsOne"
- hint {
- show on
- description "HDMI and Analog as One"
- }
- }
- pcm.!default {
- type plug
- slave.pcm "TwoAsOne"
- }
Advertisement
Add Comment
Please, Sign In to add comment