<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>171009</bug_id>
          
          <creation_ts>2007-03-15 09:14 0000</creation_ts>
          <short_desc>alsa-utils-1.0.14_rc2-r2 - could not detect custom ALSA settings</short_desc>
          <delta_ts>2007-03-15 15:19:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>REGRESSION</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>konsti@ludenkalle.de</reporter>
          <assigned_to>uberlord@gentoo.org</assigned_to>
          <cc>alsa-bugs@gentoo.org</cc>
    
    <cc>jakub@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>konsti@ludenkalle.de</who>
            <bug_when>2007-03-15 09:14:29 0000</bug_when>
            <thetext>alsa-utils worked for ages, this particular version messes up sound card order:

root@anita:/etc/modules.d/ &gt; /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 &quot;Could not ...&quot; 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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-03-15 09:32:43 0000</bug_when>
            <thetext>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&apos;ve posted comes from rewriting this:

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

into 

if [ -z &quot;${DRIVERS}&quot; ] &amp;&amp; \
( [ ! -r /proc/asound/cards ] || grep -q &apos; no soundcards &apos; /proc/asound/cards 2&gt;/dev/null ) ; then
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-03-15 11:33:56 0000</bug_when>
            <thetext>Meh, my bad for not testing that.
Fixed in -r3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>konsti@ludenkalle.de</who>
            <bug_when>2007-03-15 11:39:58 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>konsti@ludenkalle.de</who>
            <bug_when>2007-03-15 15:19:18 0000</bug_when>
            <thetext>All right. -r3 removes the &quot;config not found...&quot; line and restores my old soundcard order.

Many thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>