Bug 171009 - alsa-utils-1.0.14_rc2-r2 - could not detect custom ALSA settings
Bug#: 171009 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: uberlord@gentoo.org Reported By: konsti@ludenkalle.de
Component: Ebuilds
URL: 
Summary: alsa-utils-1.0.14_rc2-r2 - could not detect custom ALSA settings
Keywords:  REGRESSION
Status Whiteboard: 
Opened: 2007-03-15 09:14 0000
Description:   Opened: 2007-03-15 09:14 0000
alsa-utils worked for ages, this particular version messes up sound card order:

root@anita:/etc/modules.d/ > /etc/init.d/alsasound restart
 * Caching service dependencies ...                                            
                                [ ok ]
 * Service alsasound starting
 Could not detect custom ALSA settings.  Loading all detected alsa drivers.
XXX write TLV...
 * Service alsasound started

The "Could not ..." line was never seen by me before.
/etc/modules.d/alsa still looks like this way:

alias char-major-116 snd
alias char-major-14 soundcore

alias snd-card-0 snd-ice1724
alias snd-card-1 snd-ens1371
alias snd-card-2 snd-hda-intel
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2

alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss
alias sound-service-2-0 snd-mixer-oss
alias sound-service-2-1 snd-seq-oss
alias sound-service-2-3 snd-pcm-oss
alias sound-service-2-8 snd-seq-oss
alias sound-service-2-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

options snd cards_limit=2

------- Comment #1 From Jakub Moc (RETIRED) 2007-03-15 09:32:43 0000 -------
Eh, the init script is not responsible for you sound cards order; if you need a
particular order, you should do this:

alias snd-card-0 snd-ice1724 index=0
alias snd-card-1 snd-ens1371 index=1
alias snd-card-2 snd-hda-intel index=2

The message you've posted comes from rewriting this:

if [[ -z "${DRIVERS}" && ! ( -d /proc/asound && -z "$(grep ' no soundcards '
/proc/asound/cards)" ) ]] ; then

into 

if [ -z "${DRIVERS}" ] && \
( [ ! -r /proc/asound/cards ] || grep -q ' no soundcards ' /proc/asound/cards
2>/dev/null ) ; then

------- Comment #2 From Roy Marples (RETIRED) 2007-03-15 11:33:56 0000 -------
Meh, my bad for not testing that.
Fixed in -r3.

------- Comment #3 From konsti@ludenkalle.de 2007-03-15 11:39:58 0000 -------
If the line comes from rewriting stuff not having something todo than this is a
funny coincidence. However I never used the index=x lines ever before. I added
them and did update-modules and depmod but restarting /etc/init.d/alsasound has
the wrong soundcard order since I updated this package.

------- Comment #4 From konsti@ludenkalle.de 2007-03-15 15:19:18 0000 -------
All right. -r3 removes the "config not found..." line and restores my old
soundcard order.

Many thanks!