asound.conf 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. pcm.!dmix {
  2. type dmix
  3. ipc_key 6789
  4. ipc_key_add_uid yes
  5. slave {
  6. pcm "hw:0,0"
  7. # period_time 0
  8. period_size 1024
  9. buffer_size 16384
  10. # format S16_LE
  11. # rate 44100
  12. }
  13. }
  14. pcm.!dsnoop {
  15. type dsnoop
  16. ipc_key 5778
  17. ipc_key_add_uid yes
  18. slave {
  19. pcm "hw:0,1"
  20. # period_time 0
  21. period_size 4096
  22. buffer_size 16384
  23. channels 2
  24. # format S16_LE
  25. # rate 16000
  26. }
  27. bindings.0 0
  28. }
  29. pcm.softvol {
  30. type softvol
  31. slave {
  32. pcm "dmix" #redirect the output to dmix (instead of "hw:0,0")
  33. }
  34. control {
  35. name "softmaster" #override the PCM slider to set the softvol volume level globally
  36. card 0
  37. }
  38. min_dB -51.0
  39. max_dB -0.0
  40. resolution 128
  41. }
  42. pcm.softvol1 {
  43. type softvol
  44. slave {
  45. pcm "dmix" #redirect the output to dmix (instead of "hw:0,0")
  46. }
  47. control {
  48. name "softmaster1" #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.softvol2 {
  56. type softvol
  57. slave {
  58. pcm "dmix" #redirect the output to dmix (instead of "hw:0,0")
  59. }
  60. control {
  61. name "softmaster2" #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.softvol3 {
  69. type softvol
  70. slave {
  71. pcm "dmix" #redirect the output to dmix (instead of "hw:0,0")
  72. }
  73. control {
  74. name "softmaster3" #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.softvol4 {
  82. type softvol
  83. slave {
  84. pcm "dmix" #redirect the output to dmix (instead of "hw:0,0")
  85. }
  86. control {
  87. name "softmaster4" #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.asymed {
  95. type asym
  96. playback.pcm "softvol"
  97. capture.pcm "dsnoop"
  98. }
  99. pcm.!default {
  100. type plug
  101. slave.pcm "asymed"
  102. }
  103. ctl.mixer0 {
  104. type hw
  105. card 0
  106. }