Difference between revisions of "Talk:Advanced Linux Sound Architecture"

From ArchWiki
Jump to: navigation, search
m (Modified HDMI Does Not work.)
(user in audio group: new section)
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
I've added an ALSA (English) category as this is a pretty large topic and will benefit from grouping pages together. I'll be working on hunting for more pages as I can. --[[User:Multiphrenic|Multiphrenic]] 13:57, 27 April 2011 (EDT)
+
== Adding udev rules for usb sound cards? ==
:I don't think this category is necessary; I doubt you'll find much else that belongs here. -- [[User:Pointone|pointone]] 22:35, 8 May 2011 (EDT)
+
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. [[User:Lmn123|Lmn123]] 01:26, 24 January 2012 (EST)
  
 
== Modified HDMI Does Not work. ==
 
== Modified HDMI Does Not work. ==
Line 7: Line 9:
 
It seemed weird that the only method offered was to restart the entire system.
 
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.--[[User:Shoeunited|Shoe]] 04:54, 16 August 2011 (EDT)
 
If this causes any harm please correct me.  I have tried this myself and it seems to work just fine.--[[User:Shoeunited|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").
 +
 +
{{hc|/etc/modprobe.d/alsa.conf|
 +
2=options snd-hda-intel index=0
 +
options snd-usb-audio index=1}}
 +
 +
{{hc|~/.asoundrc|
 +
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}}
 +
-- [[User:Markus00000|Markus00000]] 10:26, 24 November 2011 (EST)
 +
 +
Thanks I was looking for this, maybe it's a good idea to add it to the wiki?
 +
--[[User:Jordz|jordz]] ([[User talk:Jordz|talk]]) 09:24, 15 June 2012 (UTC)
 +
 +
== user in audio group ==
 +
 +
Hi,
 +
 +
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?

Revision as of 14:51, 26 December 2012

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").

/etc/modprobe.d/alsa.conf
options snd-hda-intel index=0
options snd-usb-audio index=1
~/.asoundrc
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)

Thanks I was looking for this, maybe it's a good idea to add it to the wiki? --jordz (talk) 09:24, 15 June 2012 (UTC)

user in audio group

Hi,

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?