Skip to contentSkip to conversation

Opti92x-ad1848 won't take Opti924 card

DISCUSSION Andrei Boros 4 participants 12 messages Sep 22, 2003 – Sep 29, 2003

lore
Share & tools
lore
#0 lore raw

Updated cvs tree 30min ago. Compiled the driver. Installed the driver. System is kernel-2.2.24, glibc-2.1.3
configure ran with --with-debug=detect

 gate:~# modprobe snd-opti92x-ad1848
/lib/modules/2.2.24/misc/snd-opti92x-ad1848.o: unresolved symbol
isapnp_resource_change_R09b965af
snd: Device or resource busy

Though depmod -a returns no errors about unresolved symbols.

Then manually inserting modprobe snd-isapnp will log the following

Sep 22 12:00:25 gate kernel: isapnp: Card 'OPTi Audio 16'
Sep 22 12:00:25 gate kernel: isapnp: 1 Plug & Play card detected total

Then again modprobe snd-opti92x-ad1848, same error, and logs the following :

Sep 22 12:01:22 gate kernel: no OPTi 82C92x soundcard found

in /etc/modules.conf I have the following, based on online documentation :

###########################################################################
#
# ALSA modules
# ALSA portion
alias char-major-116 snd
options snd cards_limit=2
#options snd-isapnp
isapnp_reserve_irq=8,9,10,11,12,13,14,15
alias snd-card-0 snd-cs46xx
alias snd-card-1 snd-opti92x-ad1848

# Sound module options here
options snd-cs46xx mmap_valid=1 index=0 id="Fortissimo-II"
enable=1
options snd-opti-92x-ad1848 index=1 isapnp=1 id="Opti924" port=0x220
irq=5 dma1=0 fm_port=0x38

# OSS/Free portion

alias char-major-14             soundcore
alias sound-slot-0              snd-card-0
alias sound-slot-1              snd-card-1
# card #1
alias sound-service-0-0         snd-mixer-oss
alias sound-service-0-1         snd-seq-oss
alias sound-service-0-3         snd-pcm-oss
alias sound-service-0-8         snd-seq-oss
alias sound-service-0-12        snd-pcm-oss
# card #2
alias sound-service-1-0         snd-mixer-oss
alias sound-service-1-3         snd-pcm-oss
alias sound-service-1-12        snd-pcm-oss
Signature · 10 lines
ing. Andrei Boros
mailto:[email protected] / +40-21-303-1870
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#1 lore raw
Quoted 4 lines · Andrei Boros

options snd-cs46xx mmap_valid=1 index=0 id="Fortissimo-II"
enable=1
options snd-opti-92x-ad1848 index=1 isapnp=1 id="Opti924" port=0x220
irq=5 dma1=0 fm_port=0x38

I hope these lines aren't wrapped in the original. Shouldn't fm_port be 0x388?

HTH
Clemens

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#2 lore raw
Quoted 9 lines · Clemens Ladisch
Quoted 4 lines · Andrei Boros

options snd-cs46xx mmap_valid=1 index=0 id="Fortissimo-II"
enable=1
options snd-opti-92x-ad1848 index=1 isapnp=1 id="Opti924" port=0x220
irq=5 dma1=0 fm_port=0x38

I hope these lines aren't wrapped in the original. Shouldn't fm_port be 0x388?

Ah, sorry, the complete line is :
options snd-opti-92x-ad1848 index=1 isapnp=1 id="Opti924" port=0x220
irq=5 d
ma1=0 fm_port=0x380 mpu_port=0x300 mpu_irq=7

(wrap...)

Signature · 10 lines
ing. Andrei Boros
mailto:[email protected] / +40-21-303-1870
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#3 lore raw
Quoted 2 lines · Andrei Boros

options snd-opti-92x-ad1848 index=1 isapnp=1 id="Opti924" port=0x220
irq=5 dma1=0 fm_port=0x380 mpu_port=0x300 mpu_irq=7

You've specified all parameters manually, so you could try to disable ISA PnP (isapnp=0).

And fm_port must be 0x388 (0x380 is the OPL4 port, which is detected automatically if you have an OPL4).

HTH
Clemens

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#4 lore raw
Quoted 11 lines · Clemens Ladisch
Quoted 2 lines · Andrei Boros

options snd-opti-92x-ad1848 index=1 isapnp=1 id="Opti924" port=0x220
irq=5 dma1=0 fm_port=0x380 mpu_port=0x300 mpu_irq=7

You've specified all parameters manually, so you could try to disable ISA PnP (isapnp=0).

And fm_port must be 0x388 (0x380 is the OPL4 port, which is detected automatically if you have an OPL4).

I corrected it to 0x388. Doesn't work
Completely commented the line. Doesn't work
Changed to isapnp=0. Doesn't work.

Again: the card is Opti924 in ISA slot.
modprobe returns :
/lib/modules/2.2.24/misc/snd-opti92x-ad1848.o: init_module: Device or resource busy
snd: Device or resource busy

snd-isapnp module is not loaded automatically.

If I load it manually, I see the following in the log :
kernel: isapnp: Card 'OPTi Audio 16'
kernel: isapnp: 1 Plug & Play card detected total

Then modprobe snd-opti92x-ad1848 says :
kernel: no OPTi 82C92x soundcard found

All documentation I found so far says that my 924 card uses the ad1848 chip, so I compiled only this module.

Signature · 10 lines
ing. Andrei Boros
mailto:[email protected] / +40-21-303-1870
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#5 lore raw
Quoted 3 lines · Andrei Boros

modprobe returns :
/lib/modules/2.2.24/misc/snd-opti92x-ad1848.o: init_module: Device or resource busy

This means it found the card, but another driver is already loaded, or the port/interrupts are already allocated.

Please check in /proc/interrupts and /proc/ioports that all needed resources are free.

Quoted 2 lines

All documentation I found so far says that my 924 card uses the ad1848 chip, so I compiled only this module.

The documentation may be wrong, look at the chip. (The box of my Mozart card shows a picture of a card with a CS4231, but the card itself has an AD1848.)

HTH
Clemens

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#7 lore raw
In reply to Andrei Boros
Quoted 28 lines · Andrei Boros
Quoted 11 lines · Clemens Ladisch
Quoted 2 lines · Andrei Boros

options snd-opti-92x-ad1848 index=1 isapnp=1 id="Opti924" port=0x220
irq=5 dma1=0 fm_port=0x380 mpu_port=0x300 mpu_irq=7

You've specified all parameters manually, so you could try to disable ISA PnP (isapnp=0).

And fm_port must be 0x388 (0x380 is the OPL4 port, which is detected automatically if you have an OPL4).

I corrected it to 0x388. Doesn't work
Completely commented the line. Doesn't work
Changed to isapnp=0. Doesn't work.

Again: the card is Opti924 in ISA slot.
modprobe returns :
/lib/modules/2.2.24/misc/snd-opti92x-ad1848.o: init_module: Device or resource busy
snd: Device or resource busy

snd-isapnp module is not loaded automatically.

If I load it manually, I see the following in the log :
kernel: isapnp: Card 'OPTi Audio 16'
kernel: isapnp: 1 Plug & Play card detected total

Quoted 5 lines

Then modprobe snd-opti92x-ad1848 says :
kernel: no OPTi 82C92x soundcard found

All documentation I found so far says that my 924 card uses the ad1848 chip, so I compiled only this module.

Send us the contents of /proc/isapnp after 'modprobe snd-isapnp'.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#6 lore raw
In reply to Clemens Ladisch
Quoted 11 lines · Clemens Ladisch
Quoted 3 lines · Andrei Boros

modprobe returns :
/lib/modules/2.2.24/misc/snd-opti92x-ad1848.o: init_module: Device or resource busy

This means it found the card, but another driver is already loaded, or the port/interrupts are already allocated.

Please check in /proc/interrupts and /proc/ioports that all needed resources are free.

Checked. all resources (ioports, interrupts, dma) set manually for the card (same as the dos settings) are not used.

Signature · 10 lines
ing. Andrei Boros
mailto:[email protected] / +40-21-303-1870
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#8 lore raw
In reply to Jaroslav Kysela
Quoted 8 lines · Jaroslav Kysela
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines · Andrei Boros

options snd-opti-92x-ad1848 index=1 isapnp=1 id="Opti924" port=0x220
irq=5 dma1=0 fm_port=0x380 mpu_port=0x300 mpu_irq=7

I corrected it to 0x388. Doesn't work

snd-isapnp module is not loaded automatically.

Quoted 9 lines
Quoted 6 lines

If I load it manually, I see the following in the log :
kernel: isapnp: Card 'OPTi Audio 16'
kernel: isapnp: 1 Plug & Play card detected total

Then modprobe snd-opti92x-ad1848 says :
kernel: no OPTi 82C92x soundcard found

Send us the contents of /proc/isapnp after 'modprobe snd-isapnp'.

modprobe snd-isapnp

---------------------------------------------------------------
Card 1 'OPT0924:OPTi Audio 16' PnP version 1.0
Logical device 0 'OPT0000:Pro Audio 16'

    Device is not active
    Active port 0x220
    Resources 0
      Priority preferred
      Port 0x220-0x240, align 0x1f, size 0x10, 10-bit address decoding
      Port 0x130-0x3f0, align 0x3, size 0x8, 10-bit address decoding
    Resources 1
      Priority acceptable
      Port 0x380-0x380, align 0xf, size 0xc, 10-bit address decoding
      IRQ 5,7,10 High-Edge
      DMA 0,1,3 8-bit compatible
      Alternate resources 1:1
        Priority acceptable
        Port 0x380-0x3f0, align 0xf, size 0xc, 10-bit address decoding
        IRQ 5,7,2/9,10,11 High-Edge
        DMA 0,1,3 8-bit compatible
        DMA 0,1,3 8-bit compatible
  Logical device 1 'OPT0001:Game Port'
    Compatible device PNPb02f
    Device is not active
    Resources 0
      Priority acceptable
      Port 0x201-0x201, align 0x0, size 0x1, 10-bit address decoding
      Alternate resources 0:1
        Priority acceptable
        Port 0x100-0x3f0, align 0xf, size 0x2, 10-bit address decoding
  Logical device 2 'OPT0002:MPU401'
    Device is not active
    Active port 0x300
    Active IRQ 9 [0x2]
    Resources 0
      Priority preferred
      Port 0x300-0x330, align 0xf, size 0x2, 10-bit address decoding
      IRQ 5,7,2/9,10 High-Edge
  Logical device 3 'OPT0003:CD'
    Compatible device PNP0600
    Device is active
    Active port 0x376,0x170
    Active IRQ 15 [0x2]
    Resources 0
      Priority preferred
      IRQ 15 High-Edge
    Resources 1
      Priority acceptable
      Port 0x376-0x376, align 0xf, size 0x2, 10-bit address decoding
      Port 0x170-0x170, align 0xf, size 0x8, 10-bit address decoding
      Alternate resources 1:1
        Priority acceptable
        Port 0x376-0x3f6, align 0xf, size 0x2, 10-bit address decoding
        Port 0x170-0x3f0, align 0xf, size 0x8, 10-bit address decoding
  Logical device 4 'OPT0004:Modem'
    Compatible device PNP0500
    Device is not active
    Resources 0
      Priority preferred
      IRQ 3,4,5,7,2/9,10,11 High-Edge
    Resources 1
      Priority acceptable
      Port 0x2e8-0x2f8, align 0xf, size 0x8, 10-bit address decoding
      Alternate resources 1:1
        Priority acceptable
        Port 0x3e8-0x3f8, align 0xf, size 0x8, 10-bit address decoding
      Alternate resources 1:2
        Priority acceptable
        Port 0x100-0x3f0, align 0xf, size 0x8, 10-bit address decoding
  Logical device 5 'OPT0005:OPT924'
    Device is not active
    Active port 0x30d
    Resources 0
      Priority preferred
      Port 0x30d-0x3ed, align 0x1f, size 0x9, 10-bit address decoding
    Resources 1
      Priority acceptable
      IRQ 5,10,11 High-Edge
Signature · 10 lines
ing. Andrei Boros
mailto:[email protected] / +40-21-303-1870
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#11 lore raw
In reply to Andrei Boros

At Tue, 23 Sep 2003 11:17:51 +0300,

Quoted 17 lines · Andrei Boros
Quoted 11 lines · Clemens Ladisch
Quoted 2 lines · Andrei Boros

options snd-opti-92x-ad1848 index=1 isapnp=1 id="Opti924" port=0x220
irq=5 dma1=0 fm_port=0x380 mpu_port=0x300 mpu_irq=7

You've specified all parameters manually, so you could try to disable ISA PnP (isapnp=0).

And fm_port must be 0x388 (0x380 is the OPL4 port, which is detected automatically if you have an OPL4).

I corrected it to 0x388. Doesn't work
Completely commented the line. Doesn't work
Changed to isapnp=0. Doesn't work.

Quoted 7 lines

Again: the card is Opti924 in ISA slot.
modprobe returns :
/lib/modules/2.2.24/misc/snd-opti92x-ad1848.o: init_module: Device or resource busy
snd: Device or resource busy

snd-isapnp module is not loaded automatically.

this is already something wrong.
it MUST be autoloaded.

do you still get the dependecy error?

i suspect either isapnp or pnp layer wasn't called / executed properly.

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#9 lore raw
In reply to Andrei Boros
Quoted 17 lines · Andrei Boros
Quoted 15 lines · Jaroslav Kysela
Quoted 14 lines
Quoted 4 lines
Quoted 2 lines · Andrei Boros

options snd-opti-92x-ad1848 index=1 isapnp=1 id="Opti924" port=0x220
irq=5 dma1=0 fm_port=0x380 mpu_port=0x300 mpu_irq=7

I corrected it to 0x388. Doesn't work

snd-isapnp module is not loaded automatically.

If I load it manually, I see the following in the log :
kernel: isapnp: Card 'OPTi Audio 16'
kernel: isapnp: 1 Plug & Play card detected total

Then modprobe snd-opti92x-ad1848 says :
kernel: no OPTi 82C92x soundcard found

Quoted 8 lines
Quoted 2 lines

Send us the contents of /proc/isapnp after 'modprobe snd-isapnp'.

modprobe snd-isapnp

---------------------------------------------------------------
Card 1 'OPT0924:OPTi Audio 16' PnP version 1.0
Logical device 0 'OPT0000:Pro Audio 16'

This looks ok. It seems that you don't have compiled the ISA PnP support for the module or something is broken. Could you check, if the snd- module has references to pnp_* functions? (nm snd-opti92x-ad1848.o | grep pnp_)

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#10 lore raw
Quoted 10 lines · Jaroslav Kysela
Quoted 3 lines

---------------------------------------------------------------
Card 1 'OPT0924:OPTi Audio 16' PnP version 1.0
Logical device 0 'OPT0000:Pro Audio 16'

This looks ok. It seems that you don't have compiled the ISA PnP support for the module or something is broken. Could you check, if the snd- module has references to pnp_* functions? (nm snd-opti92x-ad1848.o | grep pnp_)

Jaroslav

I compiled the drivers with ./configure --with-isapnp=yes

And :

gate:/lib/modules/2.2.24/misc# nm snd-opti92x-ad1848.o | grep pnp
00000120 ? __module_generic_string_info_parm_isapnp
00000344 r __module_isapnp_card_size
00000268 d __module_isapnp_card_table
000001a0 ? __module_parm_desc_isapnp
00000174 ? __module_parm_isapnp
0000001c r __module_pnp_card_device_size
00000110 d __module_pnp_card_device_table
00000008 d isapnp
         U isapnp_resource_change_R09b965af
000001c0 d opti9xx_pnpc_driver
         U pnp_activate_dev_R34290b72
         U pnp_init_resource_table_R16084899
         U pnp_manual_config_dev_R9cc42c96
         U pnp_register_card_driver_R1c33083c
         U pnp_request_card_device_R75d4bc7a
         U pnp_unregister_card_driver_R390814a8
000006a0 t snd_card_opti9xx_pnp
00000e94 t snd_opti9xx_pnp_remove
0000002c d snd_opti9xx_pnpids
000001f0 d snd_opti9xx_pnpids_old
Signature · 10 lines
ing. Andrei Boros
mailto:[email protected] / +40-21-303-1870
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf