From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Thinkpad 600E + alsa 0.9.0rc3/CVS, NULL pointer dereference Date: Wed, 25 Sep 2002 17:51:05 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20020920204556.GA4501@bliss> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20020920204556.GA4501@bliss> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Zinx Verituse Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Fri, 20 Sep 2002 15:45:56 -0500, Zinx Verituse wrote: > > I was getting NULL pointer derefs with ALSA 0.9.0rc3 and CVS, and my > Thinkpad 600E.. > > After much trying of different versions, and a bit of poking in to > the source, I figured out it was because ALSA is not including > linux/autoconf.h at all, so it's not getting the CONFIG_PM define, > and thus not filling in some _much needed_ function pointers. > > Simple [verified] solution is to #include "linux/autoconf.h" i think your kernel tree is broken. usually, linux/autoconf.h is included from linux/config.h, which is included by many other header files. please check whether it's a real kernel tree. > > I should note that I'm using Linux 2.4.x, and compiling ALSA > separately (is there any way to patch 2.4.x with ALSA?) > > -and now for something completely different- > > I also noticed that ALSA requires the kernel's soundcore.o in > this setup, which does not create proper devfs devices (on my > desktop, with two sound cards, it tries to create lots and lots > of devices with the same name -- bad mojo.) > > Editing alsa-kernel/core/oss/Makefile, > alsa-kernel/core/oss/sound_oss.c, and soft linking a few files > provides a workaround by using ALSA's soundcore.o, but it's > far from elegant.. > > Is there a reason I shouldn't be using ALSA's soundcore.o with > 2.4.x? and are there patches for Linux 2.4.x's soundcore.o to > make it create proper devfs names with ALSA? you can replace soundcore.c with the one found in alsa-kernel. this fixes the bug you mentioned. Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf