From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: alsasound init script (Re: possible problems with rc6 aplay ) Date: Wed, 18 Dec 2002 12:17:38 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <1040096816.3766.16.camel@Godzilla> <1040153770.5622.86.camel@cmn37.Stanford.EDU> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Fernando Pablo Lopez-Lezcano Cc: Mark Knecht , Paul Davis , Alsa-Devel List-Id: alsa-devel@alsa-project.org At Wed, 18 Dec 2002 11:46:45 +0100, I wrote: > > > It would be better to make the alsasound script more robust (and > > independent of the startup order) and able to deal with partially loaded > > modules, so instead of just checking for the /proc/asound directory it > > would actually see what modules are already loaded and only load those > > that are not. It does not look too easy, it seems that /proc/asound does > > not provide a list of loaded modules (rather a list of cards that are > > not associated with module names). > > agreed. a scenario i can imagine now is that the script just takes a > look at /proc/asound/cards and checks the numbers at the first column. > this should correspond to the card indices which have been already > loaded. then the script will try to load the modules snd-card-X but > skip the numbers listed in the above... > i'll try to rewrite as this way. after reconsideration: it would be much simpler to create a new proc file which shows the modules already loaded. Takashi ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/