From alsa-devel-owner@alsa.jcu.cz  Sun Jan  3 17:03:29 1999
Received: from jimi.hudson-house.net (ip-149-104.gw.total-web.net [209.186.149.104])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id RAA30300
	for <alsa-devel@alsa.jcu.cz>; Sun, 3 Jan 1999 17:03:03 +0100
Received: from cygnus.com (thudson@localhost [127.0.0.1])
	by jimi.hudson-house.net (8.8.7/8.8.7) with ESMTP id GAA08902
	for <alsa-devel@alsa.jcu.cz>; Sun, 3 Jan 1999 06:04:47 -0500
Message-ID: <368F4ECF.6780F5A1@cygnus.com>
Date: Sun, 03 Jan 1999 06:04:47 -0500
From: Thomas Hudson <thudson@cygnus.com>
MIME-Version: 1.0
To: "alsa-devel@alsa.jcu.cz" <alsa-devel@alsa.jcu.cz>
Subject: New PnP features w/ SB AWE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

I am trying to get the new ISA PnP features working
with my SB AWE64. Previously I have been successful
in getting ALSA working w/ my SB AWE64. But when
I configure with-isapnp=yes, my sound card is recognized
by the isapnp module, but then the driver doesn't find my 
card:

# alsasound start
Starting sound driver: snd-sb16 /lib/modules/preferred/misc/snd-sb16.o: init_module: Device or resource busy
snd: Device or resource busy
done
alsactl: No soundcards found...
# tail /var/log/messages
Jan  3 05:59:42 jimi kernel: isapnp: Device 'Creative SB AWE64 Gold'
Jan  3 05:59:42 jimi kernel: isapnp: 1 Plug & Play device detected total
Jan  3 05:59:43 jimi kernel: snd: Sound Blaster 16 soundcard #1 not found at 0x220 or device busy
Jan  3 05:59:43 jimi kernel: snd: Sound Blaster 16 soundcard #2 not found or device busy
# cat /proc/isapnp
Device 1 'CTL009e:Creative SB AWE64 Gold' PnP version 1.0 Product version 2.0
  Logical device 0 'CTL0044:Audio'
    Device is active
    Active port 0x220,0x300,0x388
    Active IRQ 5 [0x2]
    Active DMA 1,5
    Resources 0
      Priority preffered
      Port 0x220-0x220, align 0x0, size 0x10, 16-bit address decoding
      Port 0x330-0x330, align 0x0, size 0x2, 16-bit address decoding
      Port 0x388-0x388, 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-0x388, align 0x0, size 0x4, 16-bit address decoding
        IRQ 5,7,2/9,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,2/9,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 acceptable
        Port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
        IRQ 5,7,2/9,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 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-0x388, align 0x0, size 0x4, 16-bit address decoding
        IRQ 5,7,2/9,10 High-Edge
        DMA 0,1,3 8-bit byte-count compatible
      Alternate resources 0:5
        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,2/9,10 High-Edge
        DMA 0,1,3 8-bit byte-count compatible
      Alternate resources 0:6
        Priority acceptable
        Port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
        IRQ 5,7,2/9,10 High-Edge
        DMA 0,1,3 8-bit byte-count compatible
      Alternate resources 0:7
        Priority functional
        Port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
        Port 0x300-0x330, align 0xf, size 0x2, 16-bit address decoding
        Port 0x388-0x394, align 0x3, size 0x4, 16-bit address decoding
        IRQ 5,7,2/9,10 High-Edge
        DMA 0,1,3 8-bit byte-count compatible
        DMA 5,6,7 16-bit word-count compatible
  Logical device 1 'CTL7002:Game'
    Compatible device PNPb02f
    Device is active
    Active port 0x200
    Resources 0
      Priority preffered
      Port 0x200-0x200, align 0x0, size 0x8, 16-bit address decoding
      Alternate resources 0:1
        Priority acceptable
        Port 0x200-0x208, align 0x7, size 0x8, 16-bit address decoding
  Logical device 2 'CTL0023:WaveTable'
    Device is active
    Active port 0x620
    Resources 0
      Priority preffered
      Port 0x620-0x620, align 0x0, size 0x4, 16-bit address decoding
      Alternate resources 0:1
        Priority acceptable
        Port 0x620-0x680, align 0x1f, size 0x4, 16-bit address decoding

Here is my conf.modules:
alias char-major-14 snd
alias snd-card-0 snd-sb16
alias snd-minor-oss-0 snd-sb16
alias snd-minor-oss-3 snd-pcm1-oss
alias snd-minor-oss-4 snd-pcm1-oss
alias snd-minor-oss-5 snd-pcm1-oss
alias snd-minor-oss-12 snd-pcm1-oss
options snd snd_major=14 snd_cards_limit=1
options snd-sb16 snd_index=1 snd_port=0x220 snd_mpu_port=0x300 snd_irq=5 snd_dma8=1 snd_dma16=5 

And my conf.isapnp:
# (DEBUG)
(READPORT 0x020b)
(ISOLATE PRESERVE)
(IDENTIFY *)

# Card 1: (serial identifier 57 02 9e 9c e1 9e 00 8c 0e)
# Vendor Id CTL009e, Serial Number 43949281, checksum 0x57.
# Version 1.0, Vendor version 2.0
# ANSI string -->Creative SB AWE64 Gold<--
#
# Logical device id CTL0044
#     Device supports vendor reserved register @ 0x3a
#     Device supports vendor reserved register @ 0x3e
#
(CONFIGURE CTL009e/43949281 (LD 0
#     ANSI string -->Audio<--
  (INT 0 (IRQ 5 (MODE +E)))
  (DMA 0 (CHANNEL 1))
  (DMA 1 (CHANNEL 5))
  (IO 0 (BASE 0x0220))
  (IO 1 (BASE 0x0300))
  (IO 2 (BASE 0x0388))
  (ACT Y)
))
(CONFIGURE CTL009e/43949281 (LD 1
#     Compatible device id PNPb02f
#     ANSI string -->Game<--
  (IO 0 (BASE 0x0200))
  (ACT Y)
))
(CONFIGURE CTL009e/43949281 (LD 2
#     ANSI string -->WaveTable<--
  (IO 0 (BASE 0x0620))
  (ACT Y)
))
# End tag... Checksum 0x00 (OK)

(WAITFORKEY)

