From alsa-user-owner@alsa.jcu.cz  Wed Mar 10 15:17:11 1999
Received: from neutrino.kek.jp (root@neutrino.kek.jp [130.87.218.139])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id PAA23552
	for <alsa-user@alsa.jcu.cz>; Wed, 10 Mar 1999 15:15:28 +0100
Received: from lbscissors.kek.jp (root@lbscissors.kek.jp [130.87.218.173]) by neutrino.kek.jp (8.8.8+2.7Wbeta7/3.4W3) with ESMTP id XAA02994; Wed, 10 Mar 1999 23:15:10 +0900
Received: from lbscissors.kek.jp (really [127.0.0.1]) by neutrino.kek.jp
	via in.smtpd with esmtp (ident sharkey using rfc1413)
	id <m10KjlO-000sLNC@lbscissors.kek.jp> (Debian Smail3.2.0.102)
	for <alsa-user@alsa.jcu.cz>; Wed, 10 Mar 1999 23:15:10 +0900 (JST) 
Message-Id: <m10KjlO-000sLNC@lbscissors.kek.jp>
To: alsa-user@alsa.jcu.cz
Cc: dodgepond@usa.net
From: sharkey@ale.physics.sunysb.edu
Subject: Re: [Fwd: ALSA and new kernel/modules] 
In-reply-to: Your message of "Wed, 10 Mar 1999 08:24:54 EST."
             <36E672A6.BF006211@usa.net> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 10 Mar 1999 23:15:09 +0900
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

> >From what I have read the " #CONFIG_MODVERSIONS=y" is supposed to allow
> the use of older kernel modules with newer versions. Has anyone else run
> into this?

I'm not an expert kernel hacker, but it's my understanding that it's supposed
to allow this to work under the assumption that the only thing that will be
changed is the version numbers.  In other words, if the new kernel
version has no changes that would in any way affect ALSA, then the old
modules will work, and the kernel won't complain about the version number
mismatch.  If the kernel has changed in any way that affects your module,
then you'll need to recompile it.

In general, it's safest to recompile.  This goes for all independent kernel
modules, not just ALSA.
 
> AS an alternative is it possilbe to copy in the ALSA drivers into the
> sound directory of the kernel being compiled and have ALSA and/or OSS
> compiled and made directly instead of finishing the kernel (make
> modules_install) and then re-making the ALSA modules?

In theory, yes, that's possible, but you'll need to do more than just copy
it.  You'll need to patch the kernel Makefiles to compile ALSA.  That's much
more work than it's worth.
 
> With the frequent versions and improvements in the kernel, I would like
> to be able to cut down on the time spent and avoid remaking ALSA for
> each kernel version.

Why don't you just create an alias in your .profile, then?

alias ugrkernel = "cd /usr/src/linux ; make dep ; make clean ; make bzImage ; 
make modules ; make modules_install ; cd /usr/local/src/alsa ; make clean ; 
./configure ; make install"

Or something like that.

Eric 


