sound driver as module?

Marty Leisner (leisner@sdsp.mc.xerox.com)
Sat, 13 Jul 1996 07:55:38 PDT


I'm trying to make a soundblaster moudle in 2.0.5 (i386).

When I run xconfig and look at the sound setting I get (and exiting without
saving):
WARNING - broken Config.in! CONFIG_AEDSP16 was not declared!

I'm also having problems o

When I did a config without save I got:
gcc -D__KERNEL__ -I/usr/local/src/linux/linux-2.0.5/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE -DMODVERSIONS -include /usr/local/src/linux/linux-2.0.5/include/linux/modversions.h -c -o sound_switch.o sound_switch.c
sound_switch.c: In function `init_status':
sound_switch.c:97: parse error before `SOUND_CONFIG_DATE'
sound_switch.c: In function `sound_ioctl_sw':
sound_switch.c:532: warning: unused variable `mixdev'
make[2]: *** [sound_switch.o] Error 1
make[2]: Leaving directory `/fs4/local/src1/linux/linux-2.0.5/drivers/sound'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/fs4/local/src1/linux/linux-2.0.5/drivers'
make: *** [modules] Error 2
: leisner@pb;make modules

When I saved (the same config, nothing changed) and did a make modules I get:
ard.c
gcc -D__KERNEL__ -I/usr/local/src/linux/linux-2.0.5/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE -DMODVERSIONS -include /usr/local/src/linux/linux-2.0.5/include/linux/modversions.h -c -o sb_common.o sb_common.c
sb_common.c:21: #error You will need to configure the sound driver with CONFIG_AUDIO option.
sb_common.c:266: warning: `sb16_set_mpu_port' defined but not used
make[2]: *** [sb_common.o] Error 1
since CONFIG_AUDIO is #undefed.

I defined CONFIG_AUDIO manually and it compiled (but I don't know how it
works yet).

marty leisner@sdsp.mc.xerox.com
Member of the League for Programming Freedom (http://www.lpf.org)
Any sufficiently advanced technology is indistinguishable from magic
Arthur C. Clarke, The Lost Worlds of 2001