[Pkg-alsa-devel] Bug#505089: alsa-utils: "asoundconf set-default-card" does not work

Lionel Elie Mamane lionel at mamane.lu
Tue Nov 18 22:51:59 UTC 2008


On Sun, Nov 09, 2008 at 10:25:35PM +0100, Elimar Riesebieter wrote:
> * Lionel Elie Mamane [081109 22:20 +0100]
>> On Sun, Nov 09, 2008 at 10:09:11PM +0100, Elimar Riesebieter wrote:

>>> snd-card-0 is the deafult one.

>> OK, and how does one control which card is snd-card-0 when one uses
>> udev and thus one does not use the "special built-in module
>> autoloading system"?

> Put the following in /etc/modprobe.d/sound:

> alias snd-card-0    snd-"card0"
> options snd-"card0"  index=0
> alias snd-card-1    snd-"card1"
> options snd-"card1" index=1
> alias snd-card-2    snd-"card2"
> ........

Contrary to what /usr/share/doc/alsa-base/README.Debian.gz led me to
believe, this actually works. So it seems that the instructions on
README.Debian.gz are misleading at best, if not wrong. They say:

 LSA has a special built-in module autoloading system (...)  it is
 useless if your /dev directory is managed by udev, (...) here is a
 brief explanation of how it is supposed to work.

 (...)

    alias snd-card-0    snd-cs46xx
    options snd-cs46xx  index=0
    alias snd-card-1    snd-emu10k1
    options snd-emu10k1 index=1

I think that this text needs to be amended to explain that this will
work in combination with udev, too.


Anyway, I don't consider that a replacement for a working asoundconf;
the /etc/modprobe.d/sound solution is a system-wide one, asoundconf is
a per-user one. However, removing asoundconf (or its set-default-card
command) would indeed fix this bug; a working asoundconf would be even
better.

-- 
Lionel





More information about the Pkg-alsa-devel mailing list