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

From ArchWiki
Jump to: navigation, search
(Resolved issue regarding F3 and F4 keys in urxvt: comment)
(Setting default soundcard: new section)
Line 47: Line 47:
  
 
:Section marked for deletion with a pointer to this discussion. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 04:08, 2 March 2014 (UTC)
 
:Section marked for deletion with a pointer to this discussion. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 04:08, 2 March 2014 (UTC)
 +
 +
== Setting default soundcard ==
 +
 +
As another option to setting a fixed soundcard in /etc/asound.conf by
 +
{{bc|
 +
pcm.!default {
 +
type hw
 +
card 2
 +
}
 +
 +
ctl.!default {
 +
type hw         
 +
card 2
 +
}
 +
}}
 +
might be
 +
{{bc|
 +
defaults.ctl.card 2
 +
defaults.pcm.card 2
 +
}}
 +
This has the advantage (I think) of using practically the default alsa config. This prevents trouble like restricting the output to a single process, as mixing is already handled by the default config.
 +
 +
But I'm not sure if this is a good idea, or something that just works for me, and therefore where it should be in the list of alternatives.
 +
[[User:Laar|Laar]] ([[User talk:Laar|talk]]) 19:53, 5 March 2014 (UTC)

Revision as of 19:53, 5 March 2014

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)

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.

Mynis (talk) 10:04, 14 May 2013 (UTC) mynis

Request for adding a link for further reading

I hereby request adding this ( and in plaintext http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html ) to "See also" section. It has a very nicely structured description of alsa plugins with all available values and is quite useful. Emeres (talk) 02:36, 22 February 2014 (UTC)

Why not, besides the article is missing a clear link to the project home page http://www.alsa-project.org -- Kynikos (talk) 05:09, 23 February 2014 (UTC)

Resolved issue regarding F3 and F4 keys in urxvt

Advanced_Linux_Sound_Architecture#alsamixer_F3_and_F4_key_issue doesn't seem present anymore - the F2, F3 and F4 keys work fine in my urxvt. Is anyone experiencing these issues or can I remove this section? The link that explains the issue in detail is from late 2005, so it might be outdated. -- Karol (talk) 16:45, 28 February 2014 (UTC)

Section marked for deletion with a pointer to this discussion. -- Kynikos (talk) 04:08, 2 March 2014 (UTC)

Setting default soundcard

As another option to setting a fixed soundcard in /etc/asound.conf by

pcm.!default {
	type hw
	card 2
}

ctl.!default {
	type hw           
	card 2
}

might be

defaults.ctl.card 2
defaults.pcm.card 2

This has the advantage (I think) of using practically the default alsa config. This prevents trouble like restricting the output to a single process, as mixing is already handled by the default config.

But I'm not sure if this is a good idea, or something that just works for me, and therefore where it should be in the list of alternatives. Laar (talk) 19:53, 5 March 2014 (UTC)