[PATCH] sb_card.c - missing isapnp entry for my sound card

From: Brent M. Smith (smitten@nextreality.net)
Date: Fri May 05 2000 - 22:12:26 EST


This is a short little patch which adds an entry for my sound blaster 16
card. This hasn't worked since like pre-5 or something when multiple card
support was added.

This patched compiles fine, however it has not received testing outside
of me.

Paul Laufer has a similar patch I believe, however it's been several weeks
since I reported this problem, and the patch still hasn't appeared in the
kernel. I don't know how backlogged Linus is with the patches, so I
figured I might as well send one myself, and contribute the to his pile.

Here is my /proc/isapnp dump:
=============================
[smitten@smitten]:/proc$ cat isapnp
Card 1 'CTL002a:Creative SB16 PnP' PnP version 1.0 Product version 1.0
  Logical device 0 'CTL0031:Audio'
    Device is not active
    Resources 0
      Priority preferred
      Port 0x220-0x220, align 0x0, size 0x10, 16-bit address decoding
      Port 0x330-0x330, align 0x0, size 0x2, 16-bit address decoding
      Port 0x388-0x3f8, align 0x0, size 0x4, 16-bit address decoding
      IRQ 5 High-Edge
      DMA 1 8-bit byte-count compatible
      DMA 5 16-bit word-count compatible
      Alternate resources 0:1
        Priority acceptable
        Port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
        Port 0x300-0x330, align 0x2f, size 0x2, 16-bit address decoding
        Port 0x388-0x3f8, align 0x0, size 0x4, 16-bit address decoding
        IRQ 5,7,10 High-Edge
        DMA 0,1,3 8-bit byte-count compatible
        DMA 5,6,7 16-bit word-count compatible
      Alternate resources 0:2
        Priority acceptable
        Port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
        Port 0x300-0x330, align 0x2f, size 0x2, 16-bit address decoding
        IRQ 5,7,10 High-Edge
        DMA 0,1,3 8-bit byte-count compatible
        DMA 5,6,7 16-bit word-count compatible
      Alternate resources 0:3
        Priority functional
        Port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
        IRQ 5,7,10 High-Edge
        DMA 0,1,3 8-bit byte-count compatible
        DMA 5,6,7 16-bit word-count compatible
      Alternate resources 0:4
        Priority functional
        Port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
        Port 0x300-0x330, align 0x2f, size 0x2, 16-bit address decoding
        Port 0x388-0x3f8, align 0x0, size 0x4, 16-bit address decoding
        IRQ 5,7,10 High-Edge
        DMA 0,1,3 8-bit byte-count compatible
      Alternate resources 0:5
        Priority functional
        Port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
        Port 0x300-0x330, align 0x2f, size 0x2, 16-bit address decoding
        IRQ 5,7,10 High-Edge
        DMA 0,1,3 8-bit byte-count compatible
      Alternate resources 0:6
        Priority functional
        Port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
        IRQ 5,7,10,11 High-Edge
        DMA 0,1,3 8-bit byte-count compatible
  Logical device 1 'CTL2011:IDE'
    Compatible device PNP0600
    Device is not active
    Resources 0
      Priority preferred
      Port 0x168-0x168, align 0x0, size 0x8, 16-bit address decoding
      Port 0x36e-0x36e, align 0x0, size 0x2, 16-bit address decoding
      IRQ 10 High-Edge
      Alternate resources 0:1
        Priority acceptable
        Port 0x1e8-0x1e8, align 0x0, size 0x8, 16-bit address decoding
        Port 0x3ee-0x3ee, align 0x0, size 0x2, 16-bit address decoding
        IRQ 11 High-Edge
      Alternate resources 0:2
        Priority acceptable
        Port 0x100-0x1f8, align 0x7, size 0x8, 16-bit address decoding
        Port 0x300-0x3fe, align 0x1, size 0x2, 16-bit address decoding
        IRQ 10,11,15 High-Edge
      Alternate resources 0:3
        Priority functional
        Port 0x170-0x170, align 0x0, size 0x8, 16-bit address decoding
        Port 0x376-0x376, align 0x0, size 0x1, 16-bit address decoding
        IRQ 15 High-Edge
  Logical device 2 'PNPffff:Reserved'
    Device is not active
    Resources 0
      Priority preferred
      Port 0x100-0x3f8, align 0x7, size 0x1, 16-bit address decoding
  Logical device 3 'CTL7001:Game'
    Compatible device PNPb02f
    Device is not active
    Resources 0
      Priority preferred
      Port 0x200-0x200, align 0x0, size 0x8, 16-bit address decoding
[smitten@smitten]:/proc$

=========================
Patch follows:
=========================

--- v2.3.99pre6/linux/drivers/sound/sb_card.c Fri Apr 14 10:09:51 2000
+++ linux/drivers/sound/sb_card.c Fri May 5 19:27:25 2000
@@ -262,6 +262,11 @@
                ISAPNP_VENDOR('C','T','L'), ISAPNP_FUNCTION(0x0031),
                0,0,0,0,
                0,1,1,-1},
+ {"Sound Blaster 16",
+ ISAPNP_VENDOR('C','T','L'), ISAPNP_DEVICE(0x002a),
+ ISAPNP_VENDOR('C','T','L'), ISAPNP_FUNCTION(0x0031),
+ 0,0,0,0,
+ 0,1,1,-1},
        {"Sound Blaster 16",
                ISAPNP_VENDOR('C','T','L'), ISAPNP_DEVICE(0x002b),
                ISAPNP_VENDOR('C','T','L'), ISAPNP_FUNCTION(0x0031),

-- 
    Brent M. Smith, <smitten@nextreality.net>
    http://www.nextreality.net/

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



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:19 EST