Advertisement
Deadik

Untitled

Aug 25th, 2014
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.70 KB | None | 0 0
  1. pcm.!surround51HDMI {
  2.         type route
  3.         slave {
  4.                 pcm multi
  5.                 channels 8
  6.         }
  7.  
  8.         ttable.0.0 1.0
  9.         ttable.1.1 1.0
  10.         ttable.2.2 1.0
  11.         ttable.3.3 1.0
  12.         ttable.4.4 1.0
  13.         ttable.5.5 1.0
  14.  
  15.         ttable.0.6 1.0
  16.         ttable.1.7 1.0
  17.         ttable.2.6 1.0
  18.         ttable.3.7 1.0
  19.         ttable.4.6 1.0
  20.         ttable.5.7 1.0
  21. }
  22.  
  23. pcm.multi {
  24.         type multi
  25.         slaves.a {
  26.                 pcm "analog"
  27.                 channels 6
  28.         }
  29.         slaves.b {
  30.                 pcm "digital"
  31.                 channels 2
  32.         }
  33.         bindings.0.slave a
  34.         bindings.0.channel 0
  35.  
  36.         bindings.1.slave a
  37.         bindings.1.channel 1
  38.  
  39.         bindings.2.slave a
  40.         bindings.2.channel 2
  41.  
  42.         bindings.3.slave a
  43.         bindings.3.channel 3
  44.  
  45.         bindings.4.slave a
  46.         bindings.4.channel 4
  47.  
  48.         bindings.5.slave a
  49.         bindings.5.channel 5
  50.  
  51.         bindings.6.slave b
  52.         bindings.6.channel 0
  53.  
  54.         bindings.7.slave b
  55.         bindings.7.channel 1
  56. }
  57.  
  58. pcm.analog {
  59.     type dmix
  60.     ipc_key 1221
  61.     slave {
  62.         pcm "hw:0,0"
  63.         channels 6
  64. #        period_time 0
  65. #        period_size 1024
  66. #        buffer_size 4096
  67. #        rate 44100
  68.     }
  69. }
  70. pcm.digital {
  71.     type dmix
  72.     ipc_key 1222
  73.     slave {
  74.         pcm "hw:1,7"
  75.         channels 2
  76. #        period_time 0
  77. #        period_size 1024
  78. #        buffer_size 4096
  79. #   rate 44100
  80.     }
  81. }
  82.  
  83. ctl.!surround51HDMI {
  84.         type hw
  85.         card 0
  86. }
  87.  
  88. ###################################################
  89.  
  90. ####### По умолчанию два канала без эквалайзера ###
  91. pcm.!default {
  92.      type plug
  93.      slave.pcm "stereo20"
  94. }
  95. ###################################################
  96.  
  97. ############# Для mpd с эквалайзером ##############
  98.  
  99. ctl.equal {
  100.   type equal;
  101. }
  102.  
  103. pcm.plugequal {
  104.   type equal;
  105.   slave.pcm "mpd";
  106. }
  107.  
  108. pcm.!equal {
  109.   type plug;
  110.   slave.pcm plugequal;
  111. }
  112.  
  113. pcm.!mpd {
  114.      type plug
  115.      slave.pcm "stereo20"
  116. }
  117. ###################################################
  118.  
  119. ####### Два канала делим на 5.1 и на HDMI #########
  120. pcm.!stereo20 {
  121.     type asym
  122.     playback.pcm "upmix2to6"
  123.     capture.pcm "dsnooped"
  124. }
  125.  
  126. pcm.!skype {
  127.     type asym
  128.     playback.pcm "upmix2to6"
  129.     capture.pcm "skype_dsnoop"
  130. }
  131.  
  132. pcm.!surround51 {
  133.     type asym
  134.     playback.pcm "swmixer"
  135.     capture.pcm "hw:0,0"
  136. }
  137.  
  138. pcm.snd_card {
  139.     type plug
  140.     slave.pcm "swmixer"
  141. }
  142.  
  143. pcm.upmix2to6 {
  144.     type route
  145.     slave.pcm "multi"
  146.     slave.channels 8
  147.  
  148.     ttable.0.0 1    # left to left
  149.     ttable.0.2 0.6  # left to back left
  150.     ttable.0.4 0    # left to center
  151.  
  152.     ttable.1.1 1    # right to right
  153.     ttable.1.3 0.6  # right to back right
  154.     ttable.1.4 0    # right ti center
  155.  
  156.     ttable.0.5 0.6 # left to SW
  157.     ttable.1.5 0.6 # right to SW
  158.  
  159.  
  160.     ttable.0.6 1    # left to left
  161.     ttable.1.7 1    # left to left
  162. }
  163.  
  164. pcm.swmixer {
  165.     type dmix
  166.     ipc_key 1234
  167.     slave {
  168.         pcm "hw:0,0"
  169.         channels 6
  170. #        period_time 0
  171. #        period_size 1024
  172. #        buffer_size 4096
  173. #        rate 48000
  174.     }
  175. }
  176.  
  177. # software mixing of capture information (needed for new skype)
  178. pcm.dsnooped {
  179.   ipc_key 1026
  180.   type dsnoop
  181.   slave {
  182.     pcm "hw:0,0"# HW ID HERE
  183.   }
  184. }
  185.  
  186. # For Skype (asym duplexes half-duplex plugins like dsnoop and dmix into a full-duplex device)
  187. pcm.duplex {
  188.     type asym
  189.     playback.pcm "upmix2to6"
  190.     capture.pcm "dsnooped"
  191. }
  192.  
  193. # aoss emulation
  194. # http://forum.skype.com/index.php?showtopic=525851&st=20
  195. pcm.skype {
  196.   type plug
  197.   slave.pcm "duplex"
  198. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement