Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  1. pcm.!default {
  2.     type plug
  3.     slave {
  4.         pcm "hw:1,0"
  5.     }
  6. }
  7.  
  8. ctl.!default {
  9.     type hw
  10.     card 1
  11. }
  12.  
  13.  
  14. # Reusing "dmix", "dsnoop" and "plug" pcms defined in
  15. #   /usr/share/alsa/alsa.conf
  16. #   /usr/share/alsa/pcm/dmix.conf
  17. #   /usr/share/alsa/pcm/dsnoop.conf
  18.  
  19. # select what card to use by "dmix" and "dsnoop" by default
  20. # (unless ALSA_CARD environment variable is set)
  21. defaults.pcm.!card Set
  22. defaults.ctl.!card Set
  23.  
  24. # define preamp pcm
  25. pcm.preamp {
  26.     type softvol
  27.     slave.pcm "dmix"
  28.     control {
  29.         name "Pre-Amp"
  30.         card { @func refer name defaults.pcm.card }
  31.     }
  32.     min_dB -5.0
  33.     max_dB 20.0
  34.     resolution 6
  35. }
  36.  
  37. # and build default playback and capture chain
  38. pcm.!default {
  39.     type asym
  40.     playback.pcm "plug:preamp"
  41.     capture.pcm "plug:dsnoop"
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement