From: Takashi Iwai Subject: Re: debugging nm256: some results, many questions Date: Wed, 15 Mar 2006 16:42:39 +0100 Message-ID: References: <20060311174421.GB7775@tigerbay> <20060313064627.GA3864@tigerbay> <20060313145534.GA7995@tigerbay> <20060314195946.GA3633@tigerbay> <20060315060922.GA30060@tigerbay> <20060315132330.GC27567@tigerbay> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20060315132330.GC27567@tigerbay> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Florian Schlichting Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 15 Mar 2006 21:23:30 +0800, Florian Schlichting wrote: > > On Wed, Mar 15, 2006 at 10:55:36AM +0100, Takashi Iwai wrote: > > At Wed, 15 Mar 2006 14:09:22 +0800, > > Florian Schlichting wrote: > > > > > > On Tue, Mar 14, 2006 at 09:16:28PM +0100, Takashi Iwai wrote: > > > > At Wed, 15 Mar 2006 03:59:46 +0800, > > > > Florian Schlichting wrote: > > > > > Also, there are some warnings during compile and a problem with depmod > > > > > loops at install > > > > > ---------- > > > > > Building modules, stage 2. > > > > > MODPOST > > > > > *** Warning: "snd_minor_info_oss_init" [/usr/src/cvs/alsa/alsa-driver/acore/snd.ko] undefined! > > > > > *** Warning: "snd_lookup_oss_minor_data" [/usr/src/cvs/alsa/alsa-driver/acore/snd.ko] undefined! > > > > > *** Warning: "snd_info_minor_unregister" [/usr/src/cvs/alsa/alsa-driver/acore/snd.ko] undefined! > > > > > *** Warning: "snd_minor_info_oss_done" [/usr/src/cvs/alsa/alsa-driver/acore/snd.ko] undefined! > > > > > *** Warning: "snd_info_minor_register" [/usr/src/cvs/alsa/alsa-driver/acore/snd.ko] undefined! > > > > > > > > > > [...] > > > > > > > > > > WARNING: Loop detected: > > > > > /lib/modules/2.6.15-max/kernel/sound/acore/snd.ko which needs snd.ko > > > > > again! > > > > > ---------- > > > > > (and the rest of the ALSA modules is ignored), so although I could > > > > > build things, it wouldn't "make install" and I can't make a final smoke > > > > > test :-( > > > > > > > > Hm, it sounds like CONFIG_PROC_FS isn't defined properly. > > > > Please check alsa-driver/include/linux/autoconf.h. It's generated by > > > > configure script. > > > > > > hmmm... do you mean this: > > > > > > #define CONFIG_ACPI_SLEEP_PROC_FS 1 > > > #undef CONFIG_ACPI_SLEEP_PROC_SLEEP > > > [...] > > > #undef CONFIG_PCI_LEGACY_PROC > > > [...] > > > #define CONFIG_SCSI_PROC_FS 1 > > > [...] > > > #define CONFIG_PROC_FS 1 > > > #define CONFIG_PROC_KCORE 1 > > > [...] > > > #define CONFIG_SND_VERBOSE_PROCFS 1 > > > > > > -.- > > > > > > I noticed the errors said something with oss. My compile commmand line > > > was './cvscompile --with-isapnp=no --with-sequencer=no --with-oss=no > > > --with-cards=nm256' and that still gives the above errors. I just > > > recompiled with just './cvscompile --with-cards=nm256' and there are no > > > errors, depmod runs fine, I can insert the module... perfect! > > > > Then something conflicts. Could you check CONFIG_SND_OSSEMUL in > > autoconfig.h? > > I did a few tests with different options, and it's clearly the > --with-oss=no that causes the errors during compile and install > > #define CONFIG_SND_OSSEMUL 1 - with the working options, > /* #undef CONFIG_SND_OSSEMUL */ when the errors occur - but it's in there > twice, at line 1276 and 1300, in sections "include/autoconf-extra.h." and > "include/config1.h"! > I'm attaching the whole file for a ./cvscompile --with-cards=nm256 > --with-oss=no I got it. This problem is fixed on CVS now. > > > The mixer > > > settings also survive a suspend, apart from Master Volume which becomes > > > muted (but I guess that's intented? I can't confirm bug#1532) > > > > Hm, no, it's not intended. I think this is the side effect of using > > ac97->regs[]. The ac97 codec routine mutes the master volume to avoid > > noise at suspend, and resumes it with the cache value. > > > > Please try the newer patch below. > > I've tried it, it works well and all the registers including Master > Volume are restored to their pre-suspend values. Thanks for confirmation. I applied the patches to CVS. Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642