Click to See Complete Forum and Search --> : isapnp Sound card...Help!!!


bruce1271
11-08-2001, 10:27 AM
I have been searching the web for 4 days now, and I have tried alot of things, but I am stuck.

I have an opti 931 Sound card.
I have used the isapnp tools to load up some io's and I get this output:


I have in this file a line reading:
(CSN 1 (LD 0 (REG 2 (POKE 4))))

This is supposed to disable all pnp i/o's so I can reset them using this:

OPTi82C931 01 0x07 03 0x1A 04 0x54 05 0x30 06 0x82 13 0x01 17 0x08 19 0x00

I have tried this with and without disabling the i/o's(With and without the line in my isapnp.conf file. And the module mad16.o wont load. It comes as:

[root@bmh sound]# insmod mad16.o.gz
mad16.o.gz: init_module: Invalid argument
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters


I have tried every combination of irq and io settings and I cant get this damn module to load. I also tried using sndconfig..mad16 wont load. init_module not found is the error

Has anyone used this card? Do you have an example isapnp.con file? How baout the OPTiconf program?? anyone know exactly how to use it, I am not sure what an MCR number is? Anyone know this?

Thanks in advance.

bruce1271
11-08-2001, 10:39 AM
Oh, this is in my /proc/isapnp, after I use the CSN reset:

Card 2 'OPT0931:OPTI 931AD Audio 16' PnP version 1.0
Logical device 0 'PNP0600:IDE CD'
Device is active
Active port 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0 xffff
Active IRQ 255 [0xff],255 [0xff]
Active DMA 255,255
Active memory 0xffffffff,0xffffffff,0xffffffff,0xffffffff
Resources 0
Priority acceptable
Port 0x376-0x376, align 0xf, size 0x2, 16-bit address decoding
Port 0x170-0x170, align 0xf, size 0x8, 16-bit address decoding
IRQ 15 High-Edge
Alternate resources 0:1
Priority acceptable
Port 0x36e-0x36f, align 0x7, size 0x2, 16-bit address decoding
Port 0x168-0x16f, align 0x7, size 0x8, 16-bit address decoding
IRQ 10 High-Edge
Alternate resources 0:2
Priority acceptable
Port 0x3ee-0x3f6, align 0x7, size 0x2, 16-bit address decoding
Port 0x1e8-0x1f0, align 0x7, size 0x8, 16-bit address decoding
IRQ 11 High-Edge
Alternate resources 0:3
Priority acceptable
Port 0x36e-0x3fe, align 0x7, size 0x2, 16-bit address decoding
Port 0x168-0x1f8, align 0x7, size 0x8, 16-bit address decoding
IRQ 5,7,10,11 High-Edge
Logical device 1 'OPT9310:OPTi Audio 16'
Device is active
Active port 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0 xffff
Active IRQ 255 [0xff],255 [0xff]
Active DMA 255,255
Active memory 0xffffffff,0xffffffff,0xffffffff,0xffffffff
Resources 0

The opti prog I think is supposed to reset this, but it is not doing it.
:confused:

bdg1983
11-08-2001, 05:59 PM
Shouldn't you be using

insmod mad16

instead of

insmod mad16.o.gz?

bruce1271
11-08-2001, 06:28 PM
It doesnt matter. They are able to be zipped now to save space.

bdg1983
11-09-2001, 07:40 AM
Originally posted by bruce1271:
<STRONG>It doesnt matter. They are able to be zipped now to save space.</STRONG>

I do realize that. I was just wondering if 'mad16.o.gz: init_module: Invalid argument' was caused by specifying '.gz' at the end.

insmod mad16.o.gz

bruce1271
11-09-2001, 01:27 PM
I guess no-one has an ISAPNP sound card in thier box?

bdg1983
11-09-2001, 04:03 PM
I guess so.

bruce1271
11-12-2001, 04:26 PM
Well, Since no one on here knew the answer I will post it for furture newbie's so they can get some help.

Loading my opti931 isapnp card was a pain!

there are a few things I had to do:

Here is my start script for the card:

#!/bin/bash

cd /lib/modules/2.4.8-26mdk/kernel/drivers/sound
insmod soundcore.o.gz
insmod sound
insmod ad1848.o.gz
insmod uart401.o.gz
insmod sb_lib.o.gz

isapnp /etc/isapnp.conf

modprobe mad16
modprobe mad16

-------------------------------------
Here is my isapnp.conf:

(READPORT 0x0203)
(ISOLATE)
(IDENTIFY *)

# Card 1: (serial identifier 74 ff ff ff ff 31 09 14 3e)
# OPT0931 Serial No -1 [checksum 74]
# Version 1.0, Vendor version 0.0

# ANSI string --&gt;OPTi Audio 16&lt;--

(CONFIGURE OPT0931/-1

(LD 1
(IO 0 (BASE 0x0530))
(IO 1 (BASE 0x0388))
(IO 2 (BASE 0x0220))
(IO 3 (BASE 0x0E0E))
(INT 0 (IRQ 11 (MODE +E)))
(DMA 0 (CHANNEL 1))
# This sets the unused 2nd DMA to DMA0, although you may be able to set it
# to '-1'(unused). I haven't tried that yet tho, so setting it to 0 should
# be OK.
(DMA 1 (CHANNEL 0))
(ACT Y)
)

# ANSI string --&gt;Game Port&lt;--

#(LD 2
#(IO 0 (BASE 0x0200))
#(ACT Y)
#)

# ANSI string --&gt;MPU401&lt;--

(LD 3
(IO 0 (BASE 0x0330))
(INT 0 (IRQ 9 (MODE +E)))
(ACT Y)
))

# Reset CSN allocation. Make this card work.

(CSN 1 (LD 0 (REG 2 (POKE 4))))

# Returns all cards to the "Wait for Key" state
(WAITFORKEY)


-----------------------------------
Here is my modules.conf:

alias sound mad16
pre-install sb /sbin/modprobe -k sound
post-install mad16 /sbin/modprobe -k ad8148
post-install mad16 /sbin/modprobe -k uart_401
post-install mad16 /sbin/modprobe -k sb_lib
#alias char-major-14 mad16
#alias sound-slot-0 mad16
options sb mad16=1
options mad16 io=0x530 irq=11 dma=0 mpu_io=0x300 mpu_irq=9 joystick=1
options ad1848 io=0x530 irq=11


---------------------------------------
Hope this helps!! bye :p

bdg1983
11-12-2001, 05:31 PM
Now how the hell was I supposed to know that? You seem to think ALL of us should have been able to supply you with the solution.

Some may have isapnp soundcards. Some may use Mandrake. How many have the exact same as you? Most will use pci soundcards.

I configured my builtin (pci) soundcard in my work pc (Compaq) a couple of months ago and actually used a similar configuration that you posted. I didn't post a question here for help. I searched Google and finally found the answer. It works now.

thedexman
11-12-2001, 05:39 PM
Hell, I think the problem is that ISA and PnP don't even belong in the same sentence.

bruce1271
11-12-2001, 05:53 PM
As a rule, I think all newbie's should have to go through installing and loading a piece of hardware that is not automatically configured. What are we turning into anyway's..a bunch of automated window users??

Happy listening! :eek: