asound.conf 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. pcm.!dmix {
  2. type dmix
  3. ipc_key 6789
  4. ipc_key_add_uid yes
  5. slave {
  6. pcm "hw:0,1"
  7. # period_time 0
  8. period_size 1024
  9. buffer_size 16384
  10. # format S16_LE
  11. # rate 44100
  12. }
  13. }
  14. pcm.!dmix_beep {
  15. type dmix
  16. ipc_key 6789
  17. ipc_key_add_uid yes
  18. slave {
  19. pcm "hw:0,2"
  20. # period_time 0
  21. period_size 1024
  22. buffer_size 16384
  23. # format S16_LE
  24. # rate 44100
  25. }
  26. }
  27. pcm.!dsnoop {
  28. type dsnoop
  29. ipc_key 5778
  30. ipc_key_add_uid yes
  31. slave {
  32. pcm "hw:0,0"
  33. # period_time 0
  34. period_size 4096
  35. buffer_size 16384
  36. channels 2
  37. # format S16_LE
  38. # rate 48000
  39. }
  40. # bindings.0 0
  41. }
  42. pcm.softvol {
  43. type softvol
  44. slave {
  45. pcm "dmix" #redirect the output to dmix (instead of "hw:0,0")
  46. }
  47. control {
  48. name "softmaster" #override the PCM slider to set the softvol volume level globally
  49. card 0
  50. }
  51. min_dB -51.0
  52. max_dB -0.0
  53. resolution 128
  54. }
  55. pcm.softvol1 {
  56. type softvol
  57. slave {
  58. pcm "dmix" #redirect the output to dmix (instead of "hw:0,0")
  59. }
  60. control {
  61. name "softmaster1" #override the PCM slider to set the softvol volume level globally
  62. card 0
  63. }
  64. min_dB -51.0
  65. max_dB -0.0
  66. resolution 128
  67. }
  68. pcm.softvol2 {
  69. type softvol
  70. slave {
  71. pcm "dmix" #redirect the output to dmix (instead of "hw:0,0")
  72. }
  73. control {
  74. name "softmaster2" #override the PCM slider to set the softvol volume level globally
  75. card 0
  76. }
  77. min_dB -51.0
  78. max_dB -0.0
  79. resolution 128
  80. }
  81. pcm.softvol3 {
  82. type softvol
  83. slave {
  84. pcm "dmix" #redirect the output to dmix (instead of "hw:0,0")
  85. }
  86. control {
  87. name "softmaster3" #override the PCM slider to set the softvol volume level globally
  88. card 0
  89. }
  90. min_dB -51.0
  91. max_dB -0.0
  92. resolution 128
  93. }
  94. pcm.softvol4 {
  95. type softvol
  96. slave {
  97. pcm "dmix" #redirect the output to dmix (instead of "hw:0,0")
  98. }
  99. control {
  100. name "softmaster4" #override the PCM slider to set the softvol volume level globally
  101. card 0
  102. }
  103. min_dB -51.0
  104. max_dB -0.0
  105. resolution 128
  106. }
  107. pcm.softvol5 {
  108. type softvol
  109. slave {
  110. pcm "dmix_beep" #redirect the output to dmix (instead of "hw:0,0")
  111. }
  112. control {
  113. name "softmaster5" #override the PCM slider to set the softvol volume level globally
  114. card 0
  115. }
  116. min_dB -51.0
  117. max_dB -0.0
  118. resolution 128
  119. }
  120. pcm.asymed {
  121. type asym
  122. playback.pcm "softvol"
  123. capture.pcm "dsnoop"
  124. }
  125. pcm.!default {
  126. type plug
  127. slave.pcm "asymed"
  128. }
  129. pcm.asymed_beep {
  130. type asym
  131. playback.pcm "softvol5"
  132. }
  133. pcm.!playback_beep {
  134. type plug
  135. slave.pcm "asymed_beep"
  136. }
  137. ctl.mixer0 {
  138. type hw
  139. card 0
  140. }