Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cat /proc/asound/cards
- #
- # 0 [PCH ]: HDA-Intel - HDA Intel PCH
- # HDA Intel PCH at 0xfbff8000 irq 39
- # 1 [NVidia ]: HDA-Intel - HDA NVidia
- # HDA NVidia at 0xfaffc000 irq 17
- # 2 [Headset ]: USB-Audio - Logitech Wireless Headset
- # Logitech Logitech Wireless Headset at usb-0000:00:1a.0-1.1.4.4, full speed
- # ^
- # |_______________ alsa card index
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :::::::::::::::::::::::::::::::: /etc/asound.conf ::::::::::::::::::::::::::::::::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- # this makes a "device" for multiplexing by specifying the alsa device number?
- # Logitech USB headset w/mic
- pcm.foomix {
- type dmix
- ipc_key 1024
- ipc_key_add_uid 0
- slave.pcm "hw:2,0"
- }
- # I don't know what a dsnoop is used for but it's in many examples
- pcm.foosnoop {
- type dsnoop
- ipc_key 1025
- slave.pcm "hw:2,0"
- }
- # multiplex device "fooplex" using the logitech headset
- pcm.fooplex {
- type asym
- playback.pcm "foomix"
- capture.pcm "foosnoop"
- }
- # "PCH" speaker/mic output on the back of my computer
- pcm.dmixed {
- type dmix
- ipc_key 1024
- ipc_key_add_uid 0
- slave.pcm "hw:0,0"
- }
- # snoop device for "PCH" speaker/mic
- pcm.dsnooped {
- type dsnoop
- ipc_key 1025
- slave.pcm "hw:0,0"
- }
- # multiple device for "PCH" speaker/mic
- pcm.duplex {
- type asym
- playback.pcm "dmixed"
- capture.pcm "dsnooped"
- }
- # Instruct ALSA to use "PCH" as the default device
- # can override the default in each user's ~/.asoundrc
- pcm.!default {
- type plug
- slave.pcm "duplex"
- }
- ctl.!default {
- type hw
- card 0
- }
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :::::::::::::::::::::::::::::::: /home/steamuser/.asoundrc ::::::::::::::::::::::::::::::::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- # Steam and Mumble are run using sudo to "steamuser"
- # we want to use Logitech headset for Mumble and Steam. Multiplex device allows for this
- # "steamuser" must be in audio group (and possibly plugdev group?)
- #
- # the Mumble Audio Tuning Wizard config settings
- # https://imgur.com/ojRJPVul.png
- pcm.!default {
- type plug
- slave.pcm "fooplex"
- }
- # Logitech headset is hw 2
- ctl.!default {
- type hw
- card 2
- }
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :::::::::::::::::::::::::::::::: /home/firefox/.asoundrc ::::::::::::::::::::::::::::::::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- # sudo to "firefox" user for running web browser
- # if empty/commented out, then uses defaults from /etc/asound.conf
- # if we want to use headphones to listen to youtube at night, then uncomment the lines below
- # it is just a copy of "steamuser" setup
- # seems like re-sudo to "firefox" user should work after changing file but I had to restart
- # computer to get it to work. Not sure what the problem is
- #
- # pcm.!default {
- # type plug
- # slave.pcm "fooplex"
- #}
- #ctl.!default {
- # type hw
- # card 2
- #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement