<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>3487</bug_id>
          
          <creation_ts>2004-01-14 12:45:00 +0300</creation_ts>
          <short_desc>sound-scripts should be reworked along this discussion</short_desc>
          <delta_ts>2007-06-11 21:53:20 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>sound-scripts</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.geocrawler.com/archives/3/12349/2002/9/0/9720312/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>8212</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          <cc>ab</cc>
    
    <cc>rider</cc>
    
    <cc>shrek</cc>
    
    <cc>vsu</cc>
    
    <cc>wrar</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11235</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2004-01-14 12:45:00 +0300</bug_when>
    <thetext>&gt; Thanks for the info.  I still think it&apos;s a bandaid though: the real problem
&gt; is that the logic in the init script is broken.  Anything that causes modules
&gt; to be loaded before the init script is run breaks the script, as far as I can
&gt; see.  For example: compiling into the kernel, i.e. not as modules ; using
&gt; hardware detection software that autoloads sound card drivers ; using usb
&gt; audio...  In these cases /proc/asound will exist when the init script is run,
&gt; and mixer settings will not be restored, card specific scripts will not be run
etc.
&gt; 
&gt; In the long term (2.6 kernel) I am imagining the following:
&gt; 
&gt; (1) the init script just loads modules.
&gt; (2) when modules are loaded, whether for a pci card, a usb one whatever,
&gt; the hotplug subsystem is called: it restores mixer settings for the card and
&gt; runs card specific scripts.

except for the check of /proc/asound, the hotplug problem can be
sorted to the following:

1. hotplug may be called before alsa init script.

2. hotplug needs to manage the mixer configuration of plugged /
   unplugged devices dynamically.

3. alsa initscript itself should be independent from hotplug.

they are not all but certainly a major part of the problems.


the first one is not easy, because the network devices can belong to
hotplug, too.  the scenario is like this:
  many alsa files are located under /usr
    -&gt; a networkfs (e.g. NFS) is required before the alsa service
      -&gt; the network must be initialized in prior
        -&gt; the network base = hotplug is needed to run before alsa!

the second problem is also tough.
alsa driver needs to access the device to get the current mixer
values, but at the remove callback of hotplug, the device was actually
unplugged...  probably implementing cache would be necessary.

the third one is obvious.
i don&apos;t think it&apos;s good to let hotplug initialize the pci cards, too.
for example, if i don&apos;t have any usb devices, i&apos;d like to remove
hotplug.  but if alsa initscript rely on the hotplug stuff, i cannot
do that.  that&apos;s bad.

well, still many obstacles ahead.
i&apos;d love to see a perfect solution :)


Takashi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11396</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2004-01-22 09:11:32 +0300</bug_when>
    <thetext>should have found myself e.g. onboard+soundcard+usb mix to test...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51320</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2007-06-11 21:53:09 +0400</bug_when>
    <thetext>Думаю, неактуально.  Модули нынче грузит всё равно udevd.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>