SB 16 ISA PnP: Alsa ok, Kernel not???

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by Frank Steine » Wed, 13 Sep 2000 18:20:16



Hi,

I've a strange problem with a Sounblaster 16 ISA PnP on SuSE 6.4.
The card is detected by alsaconf, and everything works fine with
the alsa drivers. But the kernel drivers (sb.o) refuses to detect
the card (unfortunately, I need the kernel drivers for Quake I).

In /proc/isapnp there are the following information:

Card 1 'CTL00f0:Creative ViBRA16X PnP' PnP version 1.0 Product version 1.0
  Logical device 0 'CTL0043:Audio'
    Device is not active
    Active port 0x220,0x330,0x388
    Active IRQ 5 [0x2]
    Active DMA 1,3
    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 3 8-bit byte-count compatible
      Alternate resources 0:1
      ...
      etc.

Ok, so I tried the following lines on the modules.conf file:

alias char-major-14 sb
post-install sb /sbin/modprobe "-k" "adlib_card"
options sb io=0x220 irq=5 dma=1 dma16=3 mpu_io=0x330
options adlib_card io=0x388

After doing a depmod, I tried "modprobe sb" (after unloading
the alsa driver of course), but got the following:

/lib/modules/2.2.16/misc/sb.o: init_module: Device or resource busy
/lib/modules/2.2.16/misc/sb.o: insmod /lib/modules/2.2.16/misc/sb.o failed
/lib/modules/2.2.16/misc/sb.o: insmod sb failed

The same when I try to specify irq etc. directly as parameter to modprobe.
With "fuser" I've checked that no one is using the sound devices...

When alsa is loaded, it shows the following information in /proc/asound:

Sound Driver:3.8.1a-980706 (ALSA v0.5.5 emulation code)
Kernel: Linux linux 2.2.14 #1 Sat Mar 25 00:45:35 GMT 2000 i686
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
Sound Blaster 16 at 0x220, irq 5, dma 1

Audio devices:
0: DSP v4.16 (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices:
0: MPU-401 (UART)

Timers:
7: system timer

Mixers:
0: CTL1745

That all looks very fine to me, but why is the kernel driver
refusing to detect the card???

Has anyone an idea? I would really appreciate any help!!!

Best regards,
Frank

--


CAU Kiel, Olshausenstra?e 40       Phone: +49 431 880-7265, Fax: -7613
D-24098 Kiel, Germany              http://www.informatik.uni-kiel.de/~fst/

 
 
 

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by sideban » Wed, 13 Sep 2000 18:27:11


Did you compile SB as a module, and include PnP support in the kernel?

-SSB

On or about Tue, 12 Sep 2000 11:20:16 +0200, Frank Steiner

did say:

:Hi,
:
:I've a strange problem with a Sounblaster 16 ISA PnP on SuSE 6.4.
:The card is detected by alsaconf, and everything works fine with
:the alsa drivers. But the kernel drivers (sb.o) refuses to detect
:the card (unfortunately, I need the kernel drivers for Quake I).
:
:In /proc/isapnp there are the following information:
:
:Card 1 'CTL00f0:Creative ViBRA16X PnP' PnP version 1.0 Product version 1.0
:  Logical device 0 'CTL0043:Audio'
:    Device is not active
:    Active port 0x220,0x330,0x388
:    Active IRQ 5 [0x2]
:    Active DMA 1,3
:    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 3 8-bit byte-count compatible
:      Alternate resources 0:1
:      ...
:      etc.
:
:Ok, so I tried the following lines on the modules.conf file:
:
:alias char-major-14 sb
:post-install sb /sbin/modprobe "-k" "adlib_card"
:options sb io=0x220 irq=5 dma=1 dma16=3 mpu_io=0x330
:options adlib_card io=0x388
:
:After doing a depmod, I tried "modprobe sb" (after unloading
:the alsa driver of course), but got the following:
:
:/lib/modules/2.2.16/misc/sb.o: init_module: Device or resource busy
:/lib/modules/2.2.16/misc/sb.o: insmod /lib/modules/2.2.16/misc/sb.o failed
:/lib/modules/2.2.16/misc/sb.o: insmod sb failed
:
:The same when I try to specify irq etc. directly as parameter to modprobe.
:With "fuser" I've checked that no one is using the sound devices...
:
:When alsa is loaded, it shows the following information in /proc/asound:
:
:
:Sound Driver:3.8.1a-980706 (ALSA v0.5.5 emulation code)
:Kernel: Linux linux 2.2.14 #1 Sat Mar 25 00:45:35 GMT 2000 i686
:Config options: 0
:
:Installed drivers:
:Type 10: ALSA emulation
:
:Card config:
:Sound Blaster 16 at 0x220, irq 5, dma 1
:
:Audio devices:
:0: DSP v4.16 (DUPLEX)
:
:Synth devices: NOT ENABLED IN CONFIG
:
:Midi devices:
:0: MPU-401 (UART)
:
:Timers:
:7: system timer
:
:Mixers:
:0: CTL1745
:
:
:That all looks very fine to me, but why is the kernel driver
:refusing to detect the card???
:
:Has anyone an idea? I would really appreciate any help!!!
:
:Best regards,
:Frank

 
 
 

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by Frank Steine » Wed, 13 Sep 2000 20:22:14



> Did you compile SB as a module, and include PnP support in the kernel?

Yes and yes :-)
--


CAU Kiel, Olshausenstra?e 40       Phone: +49 431 880-7265, Fax: -7613
D-24098 Kiel, Germany              http://www.informatik.uni-kiel.de/~fst/
 
 
 

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by sideban » Wed, 13 Sep 2000 20:31:00


Hrm... Well, you know.. gotta ask the stupid questions first. ::grin::

does SuSE have sndconfig, or something similar? Worked for me on
RedHat.

-SSB

On or about Tue, 12 Sep 2000 13:22:14 +0200, Frank Steiner

did say:

:>
:> Did you compile SB as a module, and include PnP support in the kernel?
:
:Yes and yes :-)

 
 
 

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by Dean Plud » Wed, 13 Sep 2000 21:26:23


modprobe sb io=0x220 irq=5 dma=1 dma16=3 mpu_io=0x330
note you must pass parm to this module to work

> Hi,

> I've a strange problem with a Sounblaster 16 ISA PnP on SuSE 6.4.
> The card is detected by alsaconf, and everything works fine with
> the alsa drivers. But the kernel drivers (sb.o) refuses to detect
> the card (unfortunately, I need the kernel drivers for Quake I).

> In /proc/isapnp there are the following information:

> Card 1 'CTL00f0:Creative ViBRA16X PnP' PnP version 1.0 Product version 1.0
>   Logical device 0 'CTL0043:Audio'
>     Device is not active
>     Active port 0x220,0x330,0x388
>     Active IRQ 5 [0x2]
>     Active DMA 1,3
>     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 3 8-bit byte-count compatible
>       Alternate resources 0:1
>       ...
>       etc.

> Ok, so I tried the following lines on the modules.conf file:

> alias char-major-14 sb
> post-install sb /sbin/modprobe "-k" "adlib_card"
> options sb io=0x220 irq=5 dma=1 dma16=3 mpu_io=0x330
> options adlib_card io=0x388

> After doing a depmod, I tried "modprobe sb" (after unloading
> the alsa driver of course), but got the following:

> /lib/modules/2.2.16/misc/sb.o: init_module: Device or resource busy
> /lib/modules/2.2.16/misc/sb.o: insmod /lib/modules/2.2.16/misc/sb.o failed
> /lib/modules/2.2.16/misc/sb.o: insmod sb failed

> The same when I try to specify irq etc. directly as parameter to modprobe.
> With "fuser" I've checked that no one is using the sound devices...

> When alsa is loaded, it shows the following information in /proc/asound:

> Sound Driver:3.8.1a-980706 (ALSA v0.5.5 emulation code)
> Kernel: Linux linux 2.2.14 #1 Sat Mar 25 00:45:35 GMT 2000 i686
> Config options: 0

> Installed drivers:
> Type 10: ALSA emulation

> Card config:
> Sound Blaster 16 at 0x220, irq 5, dma 1

> Audio devices:
> 0: DSP v4.16 (DUPLEX)

> Synth devices: NOT ENABLED IN CONFIG

> Midi devices:
> 0: MPU-401 (UART)

> Timers:
> 7: system timer

> Mixers:
> 0: CTL1745

> That all looks very fine to me, but why is the kernel driver
> refusing to detect the card???

> Has anyone an idea? I would really appreciate any help!!!

> Best regards,
> Frank

> --


> CAU Kiel, Olshausenstra?e 40       Phone: +49 431 880-7265, Fax: -7613
> D-24098 Kiel, Germany              http://www.informatik.uni-kiel.de/~fst/

 
 
 

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by Frank Steine » Wed, 13 Sep 2000 22:12:29



> modprobe sb io=0x220 irq=5 dma=1 dma16=3 mpu_io=0x330
> note you must pass parm to this module to work

Well, that should be done automatically by the entries
in modules.conf, but even with the parameters directly
passed to modprobe, it does not work... :-(

Best regards,
Frank

--


CAU Kiel, Olshausenstra?e 40       Phone: +49 431 880-7265, Fax: -7613
D-24098 Kiel, Germany              http://www.informatik.uni-kiel.de/~fst/

 
 
 

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by Frank Steine » Wed, 13 Sep 2000 22:14:42



> Hrm... Well, you know.. gotta ask the stupid questions first. ::grin::

> does SuSE have sndconfig, or something similar? Worked for me on
> RedHat.

No sndconfig, but there is a possibility in their new install tool
(yast2) which I've not used because I prefer the old, textmode-based-
everything-can-be-done-manually yast1 ;-)
But good idea anyway, I will see what yast2 does for me :-)

Best regards,
Frank

--


CAU Kiel, Olshausenstra?e 40       Phone: +49 431 880-7265, Fax: -7613
D-24098 Kiel, Germany              http://www.informatik.uni-kiel.de/~fst/

 
 
 

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by Frank Steine » Wed, 13 Sep 2000 22:17:49


yast2 automatically installs the alsa drivers only :-((
--


CAU Kiel, Olshausenstra?e 40       Phone: +49 431 880-7265, Fax: -7613
D-24098 Kiel, Germany              http://www.informatik.uni-kiel.de/~fst/
 
 
 

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by Juergen Hein » Thu, 14 Sep 2000 06:34:06




>> modprobe sb io=0x220 irq=5 dma=1 dma16=3 mpu_io=0x330
>> note you must pass parm to this module to work

>Well, that should be done automatically by the entries
>in modules.conf, but even with the parameters directly
>passed to modprobe, it does not work... :-(

[-]

Lacking one more free PCI slot I'd some fun with that
card too. Mind I've not distribution, but here's what
I've got.

PnP support -- disabled in the kernel as well as in the
BIOS ( yup ). The upcoming 2.4 seems to have better support
but for now I cannot see any gain.

Used pnpdump to create /etc/isapnp.conf and edited it
and modules.conf looks like this ( irq 7 is being used
by my parallel port ) and isapnp is run in some startup
script of course.

options sb io=0x220 irq=5 dma=1 dma16=5 mpu_io=0x330

My modules.dep ( only the sound related parts ) looks
like this ..

/lib/modules/2.2.17/misc/adlib_card.o:  /lib/modules/2.2.17/misc/sound.o \
        /lib/modules/2.2.17/misc/opl3.o

/lib/modules/2.2.17/misc/awe_wave.o:    /lib/modules/2.2.17/misc/sound.o

/lib/modules/2.2.17/misc/mpu401.o:      /lib/modules/2.2.17/misc/sound.o

/lib/modules/2.2.17/misc/opl3.o:        /lib/modules/2.2.17/misc/sound.o

/lib/modules/2.2.17/misc/sb.o:  /lib/modules/2.2.17/misc/sound.o \
        /lib/modules/2.2.17/misc/uart401.o \
        /lib/modules/2.2.17/misc/soundcore.o

/lib/modules/2.2.17/misc/sound.o:       /lib/modules/2.2.17/misc/soundlow.o \
        /lib/modules/2.2.17/misc/soundcore.o

/lib/modules/2.2.17/misc/soundcore.o:

/lib/modules/2.2.17/misc/soundlow.o:

/lib/modules/2.2.17/misc/uart401.o:     /lib/modules/2.2.17/misc/sound.o

So far no problems anymore.

Ta',
Juergen

--
\ Real name     : Jrgen Heinzl         \       no flames      /

 
 
 

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by Frank Steine » Thu, 14 Sep 2000 17:24:58



> PnP support -- disabled in the kernel as well as in the

I have not tried that, only disabled PnP in the Bios...
Checkin' it out :-) Thx for the hint!

Best,
Frank

--


CAU Kiel, Olshausenstra?e 40       Phone: +49 431 880-7265, Fax: -7613
D-24098 Kiel, Germany              http://www.informatik.uni-kiel.de/~fst/

 
 
 

SB 16 ISA PnP: Alsa ok, Kernel not???

Post by Frank Steine » Fri, 15 Sep 2000 00:18:12


Ok, I got the card running after doing a new pnpdump and isapnp
and adjusting the shown parameters in modules.conf (which differ
from the sources that alsasound was using before, e.g. interrupt.
Alsa was using 5, now isapnp tells me to use 7. Strange!)

Anyway, it works and thanks for all your help :-)

Best,
Frank
--


CAU Kiel, Olshausenstra?e 40       Phone: +49 431 880-7265, Fax: -7613
D-24098 Kiel, Germany              http://www.informatik.uni-kiel.de/~fst/