Guest User

asound.conf

a guest
Jul 8th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. pcm.dmixed {
  2. type asym
  3. playback.pcm {
  4. # See plugin:dmix at http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
  5. type dmix
  6.  
  7. # Don't block other users, e.g. the Timidity midi-player daemon
  8. # http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
  9. ipc_key_add_uid true
  10.  
  11. ipc_key 5678293
  12. ipc_perm 0660
  13. ipc_gid audio
  14.  
  15. slave {
  16. # 2 for stereo, 6 for surround51, 8 for surround71
  17. channels 6
  18. pcm {
  19. format S32_LE
  20. #format S16_LE
  21.  
  22. #rate 44100
  23. rate 96000
  24.  
  25. # http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
  26. nonblock true
  27.  
  28. type hw
  29. card 0
  30. device 0
  31. subdevice 0
  32. }
  33.  
  34. period_size 1024
  35.  
  36. # If too large, use CONFIG_SND_HDA_PREALLOC_SIZE=2048
  37. buffer_size 16384
  38. }
  39. }
  40. capture.pcm "hw:0"
  41. }
  42.  
  43. pcm.!default{
  44. type plug
  45. slave.pcm "upmix20_51"
  46. }
  47.  
  48. pcm.!surround20 {
  49. type plug
  50. slave.pcm "upmix20_51"
  51. }
  52.  
  53. pcm.!surround40 {
  54. type plug
  55. slave.pcm "dmixed"
  56. route_policy duplicate
  57. }
  58.  
  59. pcm.!surround51 {
  60. type plug
  61. slave.pcm "dmixed"
  62. }
  63.  
  64. pcm.upmix20_51 {
  65. slave.pcm "dmixed"
  66. slave.channels 6
  67. type route
  68.  
  69. # Front and rear
  70. ttable.0.0 0.9
  71. ttable.1.1 0.9
  72. ttable.2.2 1
  73. ttable.3.3 1
  74.  
  75. # Center and LFE
  76. ttable.4.4 1
  77. ttable.5.5 1
  78.  
  79. # Front left/right to center
  80. ttable.0.4 0.5
  81. ttable.1.4 0.5
  82.  
  83. # Front left/right to rear
  84. ttable.0.2 0.5
  85. ttable.1.3 0.5
  86. }
Advertisement
Add Comment
Please, Sign In to add comment