crude patch for drivers/sound/Config.in (was Re: 2.1.78: linking errors with MAD16 sound, and possi

Trevor Johnson (trevor@jpj.net)
Thu, 8 Jan 1998 17:27:20 -0800 (PST)


> > I'm trying to compile a kernel for a computer with a Mozart/Oak sound card
> > (which works with Linux 2.0). By doing "make oldconfig" followed by "make
> > dep clean zImage" on a copy of 2.1.78 with no changes other than
> > commenting out "SMP = 1" in the top-level Makefile, I can get these
> > errors:
>
> Say Y to soundblaster uart401 and ad1848 too - right now it doesnt do it
> for you

When I did "make config" and "make menuconfig" there was no option for
either of these (even when I enabled support for 100% Sound Blaster
compatibles (which this card is not). I tried adding

CONFIG_UART401=y
CONFIG_AD1848=y
CONFIG_ADLIB=y [for good measure]

by hand, but when I did "make oldconfig" the first two were removed from
the resulting .config file. The strings "1848" and "UART401" don't appear
in drivers/sound/Config.in. Making the following change allowed me to
keep those options in .config (which I assume is needed to have them in
autoconf.h).

--- drivers/sound/Config.in.orig Thu Jan 8 17:04:29 1998
+++ drivers/sound/Config.in Thu Jan 8 17:02:58 1998
@@ -1,3 +1,5 @@
+dep_tristate 'CONFIG_UART401' CONFIG_UART401 $CONFIG_SOUND
+dep_tristate 'CONFIG_AD1848' CONFIG_AD1848 $CONFIG_SOUND
dep_tristate 'ProAudioSpectrum 16 support' CONFIG_PAS $CONFIG_SOUND
if [ "$CONFIG_PAS" = "y" ]; then
int 'PAS16 IRQ 3, 4, 5, 7, 9, 10, 11, 12, 14 or 15' PAS_IRQ 10

I don't yet know whether it will compile.
___
Trevor Johnson