Skip to content

Instantly share code, notes, and snippets.

@ubergarm
Last active July 17, 2022 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ubergarm/975726e37ab4bef2b431c5824f7462db to your computer and use it in GitHub Desktop.
Save ubergarm/975726e37ab4bef2b431c5824f7462db to your computer and use it in GitHub Desktop.
Arch Linux .asoundrc file for firefox audio without pulseaudio
## TESTING
# $ aplay -l # show device details
# $ aplay -lL # more deets
# $ cat /proc/asound/card*/id # to get human readable card names e.g.
# CODEC -> usb mixer
# NVidia -> displayport/hdmi monitor
# Generic -> motherboard headphones / mic / line out
# C930e -> usb web camera
# $ aplay /usr/share/sounds/alsa/Front_Center.wav # to test playback from default output device
# arecord --duration=3 --format=dat mic-check.wav # to test recording from default capture device
# aplay mic-check.wav
## CONFIG
pcm.!default
{
type asym
playback.pcm {
type plug
slave.pcm "dmix:NVidia,7"
}
capture.pcm "hw:CODEC,0"
}
## To make `alsamixer` default to whatever device you want
ctl.!default {
type hw
card NVidia
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment