[linux-audio-user] Using index=n option to assign Alsa drivers to card 0, card 1

Joel Roth res0u2uc at verizon.net
Wed Mar 22 21:30:44 EST 2006


On Thu, Mar 23, 2006 at 01:42:01AM +0000, carmen wrote:
> > snd-card-0 snd-via82xx
> > snd-slot-0 snd-card-0
> > 
> > I would consider playing with them, except that I don't see
> > these incantations/conventions defined anywhere in the Alsa
> > docs or wiki.
> 
> back when i had the illusion of using the onboard sound for something, just uncommenting the following lines (in /etc/modules.d/alsa (which gentoo puts into /etc/modules.conf after installing new modules (by calling modules-update))) and changing them to the module names was enough to affect the order:
> 
> ## alias snd-card-0 snd-interwave
> ## alias snd-card-1 snd-ens1371
> 
> if youre trying to get one besides hw:0,0,0 to be 'default', id imagine theres a way to do that with asound[.conf/.rc]. otherwise it seems dubious (i mean that apps expect you to refer to your Apogee as hw:1 and Via as hw:0)

With the onboard sound device as 'card 0', it was easy to
use that as a pcm output for all the oss applications other
sound apps I want separate from my multitracking. Something
that I won't break with my .asoundrc fiddling.

I have another solution, which is use the dsp-map=1,2
argument to the snd-pcm-oss driver, to bring the ac97
consumer part of the envy24 card to the default position.

However, I would hope to make sense of the various parameters
'index=0' 'snd-card-x' 'snd-slot-x' to better cope with
future hardware changes. And software changes, too. Some
configuration change (maybe installing udev) caused the card 0/1
assignments to swap, so I'd like them to static if possible.

Regards,

-- 
Joel Roth



More information about the Linux-audio-user mailing list