Guest User

PURE ALSA

a guest
Feb 15th, 2018
1,446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. Here is how to get sound on a minimal install without the insanity of pulseaudio:
  2.  
  3. 1. Erase .asoundrc in your home directory and asound.conf in /etc.
  4.  
  5. 2. Purge pulseaudio. And when I mean purge, I mean it.
  6.  
  7. 3. Identify your available devices in /proc/asound/modules, do:
  8. $ cat /proc/asound/modules
  9.  
  10. As an example here is my /proc/asound/modules:
  11. 0 snd_usb_audio
  12. 1 snd_hda_intel
  13.  
  14. 4. Select from the above and put them in the order you want in the file /etc/modprobe.d/alsa-base.conf, by assigning an index from -2 to 2, making the preferred output the lowest number. As I know I have two devices I want the one that says usb because that is my headphone, so in /etc/modprobe.d/alsa-base.conf I put:
  15. options snd_usb_audio enable=1 index=0
  16. options snd_hda_intel index=1
  17.  
  18. Notice the index.
  19.  
  20. 5. Restart the computer and you have perfect sound, as well in the browser.
  21.  
  22.  
  23. __More ALSA stuff!__
  24.  
  25. Simple equalizer for ALSA https://inconsolation.wordpress.com/2014/08/31/alsaequal-not-omitted-by-any-means/
  26. Multiple sound sources with ALSA https://github.com/i-rinat/apulse
  27. Setting volume from the terminal with ALSA https://askubuntu.com/questions/77522/command-to-unmute-and-maximize-volume
  28. Capturing audio with ffmpeg and ALSA https://trac.ffmpeg.org/wiki/Capture/ALSA
Add Comment
Please, Sign In to add comment