Some little debugging ( thanks god yesterday was the spanish national
day
and I had real spare time ), showed that sb_common.c will only unload
the
mixer if the 'mixer device' allocated is greater than zero. But the
first
time the mixer is loaded it does always get zero, so it will never
unload.
I'm not sure if this happens with other cards but this small fix cures
the
problem at least with soundblaster
-CUT-HERE------------------------------------------------------
diff -u -r
linux-2.1.125.orig/drivers/sound/sb_common.clinux-2.1.125/drivers/sound/sb_common.c
--- linux-2.1.125.orig/drivers/sound/sb_common.c Fri Sep 11
01:37:26 1998+++ linux-2.1.125/drivers/sound/sb_common.c Tue Oct 13
13:10:06 1998@@ -954,7 +954,7 @@
if (!(devc->caps & SB_NO_AUDIO && devc->caps &
SB_NO_MIDI) && devc->irq > 0)
{
free_irq(devc->irq, devc);
- if (devc->my_mixerdev)
+ if (devc->my_mixerdev != -1)
sound_unload_mixerdev(devc->my_mixerdev);
/* We don't have to do this bit any more the
UART401 is its own master -- Krzysztof
Halasa */
-END-CUT-HERE--------------------------------------------------
I believe it has no other side effects so I'm sending this
also to Alan.
Cheers
-- -------------------------------------------------------------| | Remember Scotch: 'THERE CAN BE ONLY ONE' | -------------------------------------------------------------| | Daniel J. Rodriksson | C-220,ETSI Telecomunicaciones | | djr@dit.upm.es | Avda Paraninfo S/N | | http://www.dit.upm.es/~djr | 28040 Madrid | | +34-1-3367366 + ext 469 | SPAIN | |------------------------------------------------------------|- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/