Subject: Built in sound problems on i386
To: 'netbsd-help@netbsd.org' <netbsd-help@NetBSD.ORG>
From: Alex Barclay <alex@vsys.com>
List: netbsd-help
Date: 02/19/1998 15:36:48
Hi all,

I am running NetBSD current (as of a few days ago) on an Asus TX97 motherboard.

For some reason the built in sound doesn't work. First off the device ID for 
the ISAPnP is CTL0043 which the current device driver skips. I added this to 
see if it was an oversight. Now it still doesn't work.

Here is my dmesg output - with DEBUG_ISAPNP turned on.

Any ideas where my problem lies?

---- snip snip snip ----
NetBSD 1.3C (WIBBLE) #0: Wed Feb 11 20:30:20 MST 1998
 
   alex@wibble.vsys.com:/usr/src/NetBSD-current/src/sys/arch/i386/compile/WI  
BBLE
cpu0: family 5 model 6 step 2
cpu0: AMD K6 (586-class)
real mem  = 33161216
avail mem = 28585984
using 430 buffers containing 1761280 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
pcib0 at pci0 dev 1 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x01)
Intel 82371AB IDE controller (PIIX4) (IDE mass storage, interface 0x80, 
revision 0x01) at pci0 dev 1 function 1 not configured
Intel 82371AB USB Host Controller (PIIX4) (USB serial bus, revision 0x01) at 
pci0 dev 1 function 2 not configured
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, 
revision 0x01) at pci0 dev 1 function 3 not configured
ahc0 at pci0 dev 11 function 0
ahc0: interrupting at irq 5
ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc0 channel 0: 16 targets
ahc0: target 6 synchronous at 8.0MHz, offset = 0xf
cd0 at scsibus0 targ 6 lun 0: <NEC, CD-ROM DRIVE:502, 2.3> SCSI2 5/cdrom 
removable
Matrox MGA Millennium II 2164W (VGA display) at pci0 dev 12 function 0 not 
configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
wd0 at wdc0 drive 0: <QUANTUM FIREBALL ST4.3A>
wd0: 4110MB, 14848 cyl, 9 head, 63 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, lba addressing
wdc1 at isa0 port 0x170-0x177 irq 15
atapibus1 at wdc1
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pms0 at pc0 irq 12
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
(isapnp probe): Trying port 203
isapnp0 at isa0 port 0x279isapnp0: Trying port 203
: read port 0x203
PnP version 1.0, Vendor version 1.0
ANSI Ident: Creative ViBRA16X PnP
Logical device id CTL0043
ANSI Ident: Audio
>>> Start dependent function config: preferred
IRQ's supported: 5 E+
DRQ's supported: 1 Width: 8-bit Speed: compat Attributes: incr 8
DRQ's supported: 3 Width: 8-bit Speed: compat Attributes: incr 8
16 IO Ports: 16 address bits, alignment 1 min 0x220, max 0x220
2 IO Ports: 16 address bits, alignment 1 min 0x330, max 0x330
4 IO Ports: 16 address bits, alignment 1 min 0x388, max 0x388
>>> Start dependent function config: acceptable
IRQ's supported: 5 7 9 10 E+
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
16 IO Ports: 16 address bits, alignment 32 min 0x220, max 0x280
2 IO Ports: 16 address bits, alignment 48 min 0x300, max 0x330
4 IO Ports: 16 address bits, alignment 1 min 0x388, max 0x388
>>> Start dependent function config: acceptable
IRQ's supported: 5 7 9 10 E+
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
16 IO Ports: 16 address bits, alignment 32 min 0x220, max 0x280
2 IO Ports: 16 address bits, alignment 48 min 0x300, max 0x330
>>> Start dependent function config: acceptable
IRQ's supported: 5 7 9 10 E+
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
16 IO Ports: 16 address bits, alignment 32 min 0x220, max 0x280
>>> Start dependent function config: functional
IRQ's supported: 5 7 9 10 E+
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
16 IO Ports: 16 address bits, alignment 32 min 0x220, max 0x280
2 IO Ports: 16 address bits, alignment 16 min 0x300, max 0x330
4 IO Ports: 16 address bits, alignment 4 min 0x388, max 0x394
>>> Start dependent function config: functional
IRQ's supported: 5 7 9 10 E+
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
16 IO Ports: 16 address bits, alignment 32 min 0x220, max 0x280
>> Start dependent function config: preferred
1 IO Ports: 16 address bits, alignment 1 min 0x201, max 0x201
>>> Start dependent function config: acceptable
1 IO Ports: 16 address bits, alignment 1 min 0x200, max 0x20f
 config: preferred
16 IO Ports: 16 address bits, alignment 1 min 0x220, max 0x220
2 IO Ports: 16 address bits, alignment 1 min 0x330, max 0x330
4 IO Ports: 16 address bits, alignment 1 min 0x388, max 0x388
IRQ's supported: 5 E+
DRQ's supported: 1 Width: 8-bit Speed: compat Attributes: incr 8
DRQ's supported: 3 Width: 8-bit Speed: compat Attributes: incr 8
Found <Creative ViBRA16X PnP, CTL0043, , Audio> config: acceptable
16 IO Ports: 16 address bits, alignment 32 min 0x220, max 0x280
2 IO Ports: 16 address bits, alignment 48 min 0x300, max 0x330
4 IO Ports: 16 address bits, alignment 1 min 0x388, max 0x388
IRQ's supported: 5 7 9 10 E+
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
Register configuration:
io[0]: 0x220/0
io[1]: 0x300/0
io[2]: 0x388/0
irq[0]: 9
drq[0]: 0
drq[1]: 0
isapnp0: configuring <Creative ViBRA16X PnP, CTL0043, , Audio>
sb0 at isapnp0 port 0x220/16,0x300/2,0x388/4 irq 9 drq 0,0
Found <Creative ViBRA16X PnP, CTL0043, , Audio> config: acceptable
16 IO Ports: 16 address bits, alignment 32 min 0x220, max 0x280
2 IO Ports: 16 address bits, alignment 48 min 0x300, max 0x330
4 IO Ports: 16 address bits, alignment 1 min 0x388, max 0x388
IRQ's supported: 5 7 9 10 E+
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8
sb0: Creative ViBRA16X PnP Audio: dsp v4.16
audio0 at sb0
Found <Creative ViBRA16X PnP, CTL7005, PNPB02F, Game> config: preferred
1 IO Ports: 16 address bits, alignment 1 min 0x201, max 0x201
Register configuration:
io[0]: 0x201/0
isapnp0: configuring <Creative ViBRA16X PnP, CTL7005, PNPB02F, Game>
joy0 at isapnp0 port 0x201/1
Found <Creative ViBRA16X PnP, CTL7005, PNPB02F, Game> config: preferred
1 IO Ports: 16 address bits, alignment 1 min 0x201, max 0x201
joy0: Creative ViBRA16X PnP Game
joy0: joystick not connected
PnP version 1.0, Vendor version 1.0
ANSI Ident: Realtek Plug & Play Ethernet Card
Logical device id RTL8019
Compatible device id PNP80D6
32 IO Ports: 10 address bits, alignment 32 min 0x220, max 0x380
IRQ's supported: 3 4 5 9 10 11 12 15 E+
Selecting attachments
Found <Realtek Plug & Play Ethernet Ca, RTL8019, PNP80D6, > config: acceptable
32 IO Ports: 10 address bits, alignment 32 min 0x220, max 0x380
IRQ's supported: 3 4 5 9 10 11 12 15 E+
Register configuration:
io[0]: 0x240/0
irq[0]: 10
isapnp0: configuring <Realtek Plug & Play Ethernet Ca, RTL8019, PNP80D6, >
ne0 at isapnp0 port 0x240/32 irq 10
Found <Realtek Plug & Play Ethernet Ca, RTL8019, PNP80D6, > config: acceptable
32 IO Ports: 10 address bits, alignment 32 min 0x220, max 0x380
IRQ's supported: 3 4 5 9 10 11 12 15 E+
ne0: NE2000 Ethernet
ne0: Ethernet address 52:54:4c:19:b5:ee
apm0 at mainbus0: Power Management spec V1.1 (BIOS mgmt disabled)
APM power mgmt engage (device 1)
: power management disabled (0x10f)
apm0: A/C state: on
apm0: battery charge state: no battery
biomask c060 netmask c460 ttymask d4e2
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
com0: 1 silo overflow, 0 ibuf floods

---- snip snip snip ----

Now the device is found after I added the CTL0043 to the acceptable types. 
However, the audit just hangs and nothing comes out of the audio ports.

Any ideas anyone?

Alex

--
Alex Barclay			Tel  : 719 635 8066x17
Vsys					Page : 719 477 5190
731 N. Weber, Ste 202
Colorado Spgs., CO, 80903	Email: alex@vsys.com