Messages in this thread Patch in this message | | | Date | Fri, 25 Dec 1998 17:50:33 -0700 (MST) | From | Chris Noe <> | Subject | Re: [2.1.132] Modularized sound oops, OPL3-SA1 [FIXED][PATCH] |
| |
Many thanks to Bob McElrath <mcelrath@draal.physics.wisc.edu>, who helped me discover the proper fix. Now the opl3sa modularized sound driver can be autoloaded/unloaded and it will twiddle its usage count properly when this one-liner patch is applied.
Chris Noe (stiker@northlink.com)
-- --------------------------------------------------------- #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/) ---- http://online.offshore.com.ai/arms-trafficker/ ----- --- linux-2.1.132/drivers/sound/opl3sa.c.orig Fri Dec 25 17:29:56 1998 +++ linux/drivers/sound/opl3sa.c Fri Dec 25 17:29:23 1998 @@ -260,6 +260,8 @@ hw_config->dma, dma2, 0); + sound_unload_audiodev(hw_config->slots[0]); } void unload_opl3sa_mpu(struct address_info *hw_config)
| |