From: Takashi Iwai <tiwai@suse.de>
To: Zinx Verituse <zinx@epicsol.org>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Thinkpad 600E + alsa 0.9.0rc3/CVS, NULL pointer dereference
Date: Wed, 25 Sep 2002 17:51:05 +0200 [thread overview]
Message-ID: <s5hwupam5jq.wl@alsa2.suse.de> (raw)
In-Reply-To: <20020920204556.GA4501@bliss>
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
prev parent reply other threads:[~2002-09-25 15:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-20 20:45 Thinkpad 600E + alsa 0.9.0rc3/CVS, NULL pointer dereference Zinx Verituse
2002-09-25 15:51 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hwupam5jq.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=zinx@epicsol.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.