Guest User

Untitled

a guest
Aug 21st, 2014
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. ###############################################################
  2. # Configuration to output sound in HDMI
  3. # and in Analog Sound Device Simultaneously
  4. ###############################################################
  5.  
  6. # Begin Stereo Output
  7. # Joining two Sound Cards as the same sound output
  8. # This is only for 2 channels audio
  9. # Src: http://www.spinics.net/linux/fedora/alsa-user/msg09594.html
  10.  
  11. pcm.TwoAsOne_Analog_dmix {
  12. type dmix
  13. ipc_key 170300
  14. # "hw:0,0" is Card 0 Device 0 - ALC889A Analog
  15. slave.pcm "hw:0,0"
  16. }
  17.  
  18. pcm.TwoAsOne_HDMI_dmix {
  19. type dmix
  20. ipc_key 170310
  21. # "hw:1,9 is Card 1 Device 9 - NVidia HDMI
  22. slave.pcm "hw:1,9"
  23. }
  24.  
  25. pcm.TwoSndcardAsOne {
  26. type multi
  27. slaves.a.pcm "TwoAsOne_Analog_dmix"
  28. slaves.a.channels 2
  29. slaves.b.pcm "TwoAsOne_HDMI_dmix"
  30. #slaves.b.pcm "hw:1,9"
  31. slaves.b.channels 2
  32.  
  33. bindings.0.slave a
  34. bindings.0.channel 0
  35. bindings.1.slave a
  36. bindings.1.channel 1
  37. bindings.2.slave b
  38. bindings.2.channel 0
  39. bindings.3.slave b
  40. bindings.3.channel 1
  41. }
  42.  
  43. pcm.TwoAsOne {
  44. type route
  45. slave.pcm "TwoSndcardAsOne"
  46. ttable.0.0 1
  47. ttable.1.1 1
  48. ttable.0.2 1
  49. ttable.1.3 1
  50. }
  51.  
  52. pcm.TwoAsOnePlug {
  53. type plug
  54. slave.pcm "TwoAsOne"
  55. hint {
  56. show on
  57. description "HDMI and Analog as One"
  58. }
  59. }
  60.  
  61. pcm.!default {
  62. type plug
  63. slave.pcm "TwoAsOne"
  64. }
Advertisement
Add Comment
Please, Sign In to add comment