awe32 synth patch

Andrea Arcangeli (arcangeli@mbox.queen.it)
Sat, 7 Jun 1997 18:02:00 +0200 (CEST)


Working for two days I have found the bug that locks my kernel if I insmod
rmmod for some times the sound module.

The patch:

--- /usr/src/awedrv-0.4.0-pre5/awe_wave.c Wed Jun 4 14:31:13 1997
+++ linux/drivers/sound/lowlevel/awe_wave.c Sat Jun 7 15:31:10 1997
@@ -1918,7 +1918,8 @@
int i;
current_alloc_time = 0;
/* don't turn off voice 31 and 32. they are used also for FM voices */
- for (i = 0; i < AWE_NORMAL_VOICES; i++)
+ /* by Andrea Arcangeli <arcangeli@mbox.queen.it> */
+ for (i = 0; i < (AWE_NORMAL_VOICES + (! awe_mem_size) * 2); i++)
awe_terminate(i);
for (i = 0; i < AWE_MAX_CHANNELS; i++)
awe_channel_init(i);

Bye!

Andrea Arcangeli
arcangeli@mbox.queen.it

HomePage: http://www.imola.queen.it/user/arcangeli/
Debian Mirror: ftp://dida43.deis.unibo.it/pub/debian/

Debian GNU
__ _ __
/ / (_)__ __ ____ __/ /
/ /__/ / _ \/ // /\ \ /_/
/____/_/_//_/\_,_//_\_(_)