From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261325AbTI3LDt (ORCPT ); Tue, 30 Sep 2003 07:03:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261336AbTI3LDt (ORCPT ); Tue, 30 Sep 2003 07:03:49 -0400 Received: from ns.suse.de ([195.135.220.2]:3036 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S261325AbTI3LDr (ORCPT ); Tue, 30 Sep 2003 07:03:47 -0400 Date: Tue, 30 Sep 2003 13:03:46 +0200 Message-ID: From: Takashi Iwai To: Nikola Knezevic Cc: linux-kernel@vger.kernel.org Subject: Re: Re[2]: PROBLEM: ALSA requests module to early, before / is mounted In-Reply-To: <6510599647.20030929171409@gmx.ch> References: <1409343736.20030926151652@gmx.ch> <1723482591.20030926200802@gmx.ch> <6510599647.20030929171409@gmx.ch> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 MULE XEmacs/21.4 (patch 13) (Rational FORTRAN) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org At Mon, 29 Sep 2003 17:14:09 +0200, Nikola Knezevic wrote: > > Hello Takashi, > Monday, September 29, 2003, 12:50:00 PM, you wrote: > >> >> Hi, I'm really annoyed to see 'No soundcards found.' in logs:) > >> TI> you didn't build in emu10k1 driver. so, at that stage, there is > >> TI> really no available card :) > >> > >> But I build one. modprobe snd-emu10k1 loads it. > > TI> did you put this module into initrd? > TI> otherwise there is NO way to load the MODULE at that time (before > TI> mounting the root). > > No I haven't. How can I do that? RTFM :) you can find it in Documentation directory. if you're using mkinitrd, it's even easier. > >> TI> yep, this should be avoided before root is mounted. > >> But for the time being, it isn't... > TI> right. but it's harmless anyway. just annoying. > > Yes, really annoying. i thought you're annoyed by the message "no soundcards found". it cannot be solved until you build the emu10k1 into kernel. > >> >> There is no call for modprobe snd-emu10k1 in > >> >> rc.modules, so after booting I have to call it manually. Yes, I could > >> >> put that call in rc.modules, but isn't it supposed to be called by ALSA? > >> TI> yes, but only if you set up /etc/modprobe.conf correctly to load the > >> TI> modules automatically. > >> TI> at least, you have to specify which card is the first one > >> TI> (snd-card-0). > >> Did that long time ago, problem remains. Also, I'm using devfs. > TI> perhaps that's the problem. > > I can't see why it should be. If I type: > modprobe snd-card-0 > it works OK. > There are some issues about devfs using old modprobe format, and new > kernel requires module-init-tools 0.9.xx, which have a lighter > modprobe.conf. As it seems to me, problem is about calling modules > before / is mounted. no. > And I haven't put it in initrd, so it can't be > loaded. I suppose that call couldn't be done sometime later? of course, the module could be requested later. the ALSA core routine calls request_module("snd-card-0"), if the entry is not present. basically, you can safely ignore the message "no soundcards found" at the boot time, because it shows only the built-in drivers. the modules can be loaded dynamically if you set up the configuration correctly. i've never used devfs by myself, so i cannot tell exactly whether it's a devfs problem. but the fact that you can load snd-card-0 module manually implies that the problem lies on auto-loading mechanism. -- Takashi Iwai ALSA Developer - www.alsa-project.org