Talk:Advanced Linux Sound Architecture
Adding udev rules for usb sound cards?
I used this udev rule to allow for hotplugging of my usb card and defaulting to the system card if the usb card is not present. http://kitenet.net/~joey/blog/entry/random_tip_redirecting_alsa_to_usb_sound_card/ Someone might want to add this to the wiki. I don't have time now but if I get it I will. Lmn123 01:26, 24 January 2012 (EST)
Modified HDMI Does Not work.
I added the line that included just restarting alsa. It seemed weird that the only method offered was to restart the entire system. If this causes any harm please correct me. I have tried this myself and it seems to work just fine.--Shoe 04:54, 16 August 2011 (EDT)
EDIROL UA-1A and Intel HDA: What worked for me
I will put this here as I have not yet understood the magic of ~/.asoundrc and because I am not sure if it were a good addition to the article.
After trying countless of configurations, I found one that allows me to 1) set the default sound card, 2) play multiple sounds simultaneously for both devices, 3) still use alsamixer (many configs gave me "cannot open mixer: Invalid argument").
options snd-hda-intel index=0 options snd-usb-audio index=1
defaults.pcm.!card 0 # set to 1 for snd-usb-audio defaults.ctl.!card 0 # set to 1 for snd-usb-audio defaults.pcm.!device 0 defaults.ctl.!device 0
-- Markus00000 10:26, 24 November 2011 (EST)
user in audio group
the wiki page says:
Users with a local login (at a virtual terminal or a display manager) have permission to play audio and change mixer levels. To allow this for a remote login, the user has to be added to the audio group.
But once my sound had disappeared (I believe after trying to install gnome / I use fluxbox). The sound was actually working, but only when logged as root. The way I solved the problem was by adding my user to the group audio. Besides the sound, the alsamixer run by the user had also much less controls that before the pane, but the controls came back after I put the user in the audio group.
Therefore, I believe this page should encourage people to add the user to the audio group to avoid such problems. Would it be this correct? Would it be OK?
Manually reloading settings from ~/.asoundrc
Since the old "sudo rc.d restart alsa" and "sudo alsa force-reload" commands don't work anymore, it took me a bit of time the other day to figure out how to restart alsa without restarting the whole machine. Sometimes I make changes to ~/.asoundrc and want to make them effective without rebooting and this was the only command I found that could acheive this:
alsactl kill rescan
This should probably be added to the wiki somewhere but I wasn't sure where the best spot for it would be. Should it be a new section? There's a few areas of the alsa wiki that just say to "restart alsa" without specifying how to do so. These could probably be updated as well.