SB sound driver

Petko Manolov (petkan@varel.bg)
Fri, 09 Oct 1998 17:07:59 +0000


This is a multi-part message in MIME format.

--------------3D050EC93360C841408E07F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Linus,

may be you know about the bug in sound driver (at least for SB)
that prevents you from unloading soundcore even if there is no
modules using soundcore's resources. This patch is a piece
from 2.1.124ac2. It's not very original, but seems to do the
job without any harm (for me). I think it would be nice to be
in the future kernels if nobody have troubles with it.

Petkan

-- 
Petko Manolov - petkan@varel.bg
http://www.varel.bg/~petkan

--------------3D050EC93360C841408E07F Content-Type: text/plain; charset=us-ascii; name="patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch"

--- sb_common.c.orig Thu Sep 10 23:37:26 1998 +++ sb_common.c Tue Oct 6 15:04:05 1998 @@ -954,8 +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) - sound_unload_mixerdev(devc->my_mixerdev); + sound_unload_mixerdev(devc->my_mixerdev); /* We don't have to do this bit any more the UART401 is its own master -- Krzysztof Halasa */ /* But we have to do it, if UART401 is not detected */

--------------3D050EC93360C841408E07F--

- 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/