Update of /cvsroot/alsa/alsa-kernel/isa/sb
In directory sc8-pr-cvs1:/tmp/cvs-serv10289

Modified Files:
        sb16.c 
Log Message:
Fixed fm_res handling

Index: sb16.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/sb/sb16.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- sb16.c      21 Jun 2003 07:52:38 -0000      1.35
+++ sb16.c      28 Jul 2003 10:20:21 -0000      1.36
@@ -350,6 +350,18 @@
 
 #endif /* CONFIG_PNP */
 
+static void snd_sb16_free(snd_card_t *card)
+{
+       struct snd_card_sb16 *acard = (struct snd_card_sb16 *)card->private_data;
+        
+       if (acard == NULL)
+               return;
+       if (acard->fm_res) {
+               release_resource(acard->fm_res);
+               kfree_nocheck(acard->fm_res);
+       }
+}
+
 static int __init snd_sb16_probe(int dev,
                                 struct pnp_card_link *pcard,
                                 const struct pnp_card_device_id *pid)
@@ -374,6 +386,7 @@
        if (card == NULL)
                return -ENOMEM;
        acard = (struct snd_card_sb16 *) card->private_data;
+       card->private_free = snd_sb16_free;
 #ifdef CONFIG_PNP
        if (isapnp[dev]) {
                if ((err = snd_card_sb16_pnp(dev, acard, pcard, pid))) {
@@ -464,7 +477,8 @@
 
        if (fm_port[dev] > 0) {
                if (snd_opl3_create(card, fm_port[dev], fm_port[dev] + 2,
-                                   OPL3_HW_OPL3, fm_port[dev] == port[dev],
+                                   OPL3_HW_OPL3,
+                                   fm_port[dev] == port[dev] || fm_port[dev] == 0x388,
                                    &opl3) < 0) {
                        snd_printk(KERN_ERR PFX "no OPL device at 0x%lx-0x%lx\n",
                                   fm_port[dev], fm_port[dev] + 2);



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to