[linux-audio-user] isapnp problem

Ralf Haller ralf at brap.de
Wed May 7 02:41:01 EDT 2003


Hello again,

here is some more information for my problem.

When starting alsa after rebooting the system I get:

[root at Baden wei]# /etc/init.d/alsasound start
Starting sound driver: snd-opti92x-ad1848 Warning: loading 
/lib/modules/2.4.20/kernel/sound/support/pnp/snd-pnp.o will taint the 
kernel: no license
  See http://www.tux.org/lkml/#export-tainted for information about 
tainted modules
Module snd-pnp loaded, with warnings
Module snd-hwdep loaded, with warnings
Module snd-timer loaded, with warnings
Module snd-opl3-lib loaded, with warnings
Module snd-page-alloc loaded, with warnings
Module snd-pcm loaded, with warnings
Module snd-ad1848-lib loaded, with warnings
Module snd-opl4-lib loaded, with warnings
/lib/modules/2.4.20/kernel/sound/isa/opti9xx/snd-opti92x-ad1848.o: 
init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, 
including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20/kernel/sound/isa/opti9xx/snd-opti92x-ad1848.o: 
insmod /lib/modules/2.4.20/kernel/sound/isa/opti9xx/snd-opti92x-ad1848.o 
failed
/lib/modules/2.4.20/kernel/sound/isa/opti9xx/snd-opti92x-ad1848.o: 
insmod snd-opti92x-ad1848 failed
done

/proc/isapnp holds:

[root at Baden wei]# more /proc/isapnp
Card 1 'OPT0925:PHILIPS PCA721AF PnP Sound Card' PnP version 1.0
  Logical device 0 'OPTffff:Unknown'
    Device is not active
  Logical device 1 'OPT9250:OPTi Audio 16'
    Device is not active
    Active port 0x220,0xf0d
    Resources 0
      Priority acceptable
      Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding
      Port 0x530-0x604, align 0xd3, size 0x8, 16-bit address decoding
      Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding
      Port 0xf8d-0xf8d, align 0x0, size 0x10, 16-bit address decoding
      IRQ 5,7,10 High-Edge
      DMA 0,1,3 8-bit byte-count type-A
      DMA 0,1,3 8-bit byte-count type-A
      Alternate resources 0:1
        Priority acceptable
        Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding
        Port 0x530-0x604, align 0xd3, size 0x8, 16-bit address decoding
        Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding
        Port 0xf0d-0xf0d, align 0x0, size 0x10, 16-bit address decoding
        IRQ 5,7,10 High-Edge
        DMA 0,1,3 8-bit byte-count type-A
        DMA 0,1,3 8-bit byte-count type-A
      Alternate resources 0:2
        Priority acceptable
        Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding
        Port 0x530-0xff0, align 0x7, size 0x8, 16-bit address decoding
        Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding
        Port 0xf8d-0xf8d, align 0x0, size 0x10, 16-bit address decoding
        IRQ 5,7,10 High-Edge
        DMA 0,1,3 8-bit byte-count type-A
      Alternate resources 0:3
        Priority acceptable
        Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding
        Port 0x530-0xff0, align 0x7, size 0x8, 16-bit address decoding
        Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding
        Port 0xf0d-0xf0d, align 0x0, size 0x10, 16-bit address decoding
        IRQ 5,7,10 High-Edge
        DMA 0,1,3 8-bit byte-count type-A
      Alternate resources 0:4
        Priority acceptable
        Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding
        Port 0x530-0xff0, align 0x7, size 0x8, 16-bit address decoding
        Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding
        Port 0xf0d-0xfed, align 0x1f, size 0x10, 16-bit address decoding
        IRQ 5,7,2/9,10,11 High-Edge
        DMA 0,1,3 8-bit byte-count type-A
        DMA 0,1,3 8-bit byte-count type-A
  Logical device 2 'PNPb02f:Game Port'
    Device is not active
    Resources 0
      Priority preferred
      Port 0x200-0x207, align 0x0, size 0x1, 16-bit address decoding
  Logical device 3 'OPT0002:MPU401'
    Device is not active
    Active port 0x300
    Active IRQ 9 [0x2]
    Resources 0
      Priority preferred
      Port 0x300-0x330, align 0xf, size 0x2, 16-bit address decoding
      IRQ 5,7,2/9,10 High-Edge

The card is not active, so alsa can't find it. To initialize the card I run:

[root at Baden wei]# /usr/local/sbin/isapnp isapnp.conf
Board 1 has Identity 81 ff ff ff ff 25 09 14 3e:  OPT0925 Serial No -1 
[checksum 81]
OPT0925/-1[0]{PHILIPS PCA721AF PnP Sound Card}: --- Disabled
OPT0925/-1[1]{OPTi Audio 16       }: Ports 0x220 0x530 0x380 0xF8D; 
IRQ10 DMA1 DMA3 --- Enabled OK
OPT0925/-1[3]{MPU401              }: Port 0x300; IRQ9 --- Enabled OK

It ssems that tne sound card is active now. Starting alsa again brings:

[root at Baden wei]# /etc/init.d/alsasound stop
Shutting down sound driver: /usr/sbin/alsactl: save_state:1048: No 
soundcards found...
done
[root at Baden wei]# /etc/init.d/alsasound start
Starting sound driver: snd-opti92x-ad1848 Warning: loading 
/lib/modules/2.4.20/kernel/sound/support/pnp/snd-pnp.o will taint the 
kernel: no license
  See http://www.tux.org/lkml/#export-tainted for information about 
tainted modules
Module snd-pnp loaded, with warnings
Module snd-hwdep loaded, with warnings
Module snd-timer loaded, with warnings
Module snd-opl3-lib loaded, with warnings
Module snd-page-alloc loaded, with warnings
Module snd-pcm loaded, with warnings
Module snd-ad1848-lib loaded, with warnings
Module snd-opl4-lib loaded, with warnings
/lib/modules/2.4.20/kernel/sound/isa/opti9xx/snd-opti92x-ad1848.o: 
init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, 
including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20/kernel/sound/isa/opti9xx/snd-opti92x-ad1848.o: 
insmod /lib/modules/2.4.20/kernel/sound/isa/opti9xx/snd-opti92x-ad1848.o 
failed
/lib/modules/2.4.20/kernel/sound/isa/opti9xx/snd-opti92x-ad1848.o: 
insmod snd-opti92x-ad1848 failed
done

Lsmod brings:

[root at Baden wei]# /sbin/lsmod
Module                  Size  Used by    Tainted: P
binfmt_misc             7036   1
autofs                 12244   0  (autoclean) (unused)
ppp_synctty             7392   0  (unused)
ppp_async               9056   1
ppp_generic            23772   3  [ppp_synctty ppp_async]
slhc                    6580   0  [ppp_generic]
8139too                17000   1
mii                     3656   0  [8139too]
ipt_REJECT              3448   2  (autoclean)
iptable_filter          2316   1  (autoclean)
ip_tables              14488   2  [ipt_REJECT iptable_filter]
ide-scsi                9616   0
scsi_mod              102868   1  [ide-scsi]
ide-cd                 31524   0
cdrom                  31040   0  [ide-cd]
mousedev                5236   1
keybdev                 2688   0  (unused)
hid                    20836   0  (unused)
input                   5568   0  [mousedev keybdev hid]
usb-uhci               24716   0  (unused)
usbcore                72096   1  [hid usb-uhci]
ext3                   64192   3
jbd                    47828   3  [ext3]

I'm stuck here. ALSA however still works with version 0.9.0rc3 and 
kernel 2.4.19.

Ralf
Ralf Haller wrote:

> Hi there,
>
> I am having some problems with a ISA plug and play sound card using 
> alsa 0.9.3 with kernel 2.4.20. The card is a snd-opti92x-ad1848.
>
> With alsa 0.9.0rc3 and kernel 2.4.29 the card worked fine. Even the 
> isapnp stuff worked without problems. However with alsa 0.9.3 and 
> kernel 2.4.20 it does not work. The card is not found by alsa. I 
> checked /proc/isapnp and found out that the card isn't initialized by 
> isapnp at all. I initialized the card manually with isapnp using the 
> values for IO, IRQ and DMA that worked for alsa 0.9.0.rc3. However 
> with no success.
>
> Any ideas what might be the problem? Have there been changes in isapnp 
> support between alsa 0.9.0.rc3 and 0.9.3?
>
> Here is some more system information:
>
> [root at Baden wei]# more /proc/isapnp
> Card 1 'OPT0925:PHILIPS PCA721AF PnP Sound Card' PnP version 1.0
>  Logical device 0 'OPTffff:Unknown'
>    Device is not active
>  Logical device 1 'OPT9250:OPTi Audio 16'
>    Device is active
>    Active port 0x220,0x530,0x380,0xf8d
>    Active IRQ 10 [0x2]
>    Active DMA 1,3
>    Resources 0
>      Priority acceptable
>      Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding
>      Port 0x530-0x604, align 0xd3, size 0x8, 16-bit address decoding
>      Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding
>      Port 0xf8d-0xf8d, align 0x0, size 0x10, 16-bit address decoding
>      IRQ 5,7,10 High-Edge
>      DMA 0,1,3 8-bit byte-count type-A
>      DMA 0,1,3 8-bit byte-count type-A
>      Alternate resources 0:1
>        Priority acceptable
>        Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding
>        Port 0x530-0x604, align 0xd3, size 0x8, 16-bit address decoding
>        Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding
>        Port 0xf0d-0xf0d, align 0x0, size 0x10, 16-bit address decoding
>        IRQ 5,7,10 High-Edge
>        DMA 0,1,3 8-bit byte-count type-A
>        DMA 0,1,3 8-bit byte-count type-A
>      Alternate resources 0:2
>        Priority acceptable
>        Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding
>        Port 0x530-0xff0, align 0x7, size 0x8, 16-bit address decoding
>        Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding
>        Port 0xf8d-0xf8d, align 0x0, size 0x10, 16-bit address decoding
>        IRQ 5,7,10 High-Edge
>        DMA 0,1,3 8-bit byte-count type-A
>      Alternate resources 0:3
>        Priority acceptable
>        Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding
>        Port 0x530-0xff0, align 0x7, size 0x8, 16-bit address decoding
>        Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding
>        Port 0xf0d-0xf0d, align 0x0, size 0x10, 16-bit address decoding
>        IRQ 5,7,10 High-Edge
>        DMA 0,1,3 8-bit byte-count type-A
>      Alternate resources 0:4
>        Priority acceptable
>        Port 0x220-0x240, align 0x1f, size 0x10, 16-bit address decoding
>        Port 0x530-0xff0, align 0x7, size 0x8, 16-bit address decoding
>        Port 0x380-0x3f0, align 0xf, size 0xc, 16-bit address decoding
>        Port 0xf0d-0xfed, align 0x1f, size 0x10, 16-bit address decoding
>        IRQ 5,7,2/9,10,11 High-Edge
>        DMA 0,1,3 8-bit byte-count type-A
>        DMA 0,1,3 8-bit byte-count type-A
>  Logical device 2 'PNPb02f:Game Port'
>    Device is not active
>    Resources 0
>      Priority preferred
>      Port 0x200-0x207, align 0x0, size 0x1, 16-bit address decoding
>  Logical device 3 'OPT0002:MPU401'
>    Device is active
>    Active port 0x300
>    Active IRQ 9 [0x2]
>    Resources 0
>      Priority preferred
>      Port 0x300-0x330, align 0xf, size 0x2, 16-bit address decoding
>      IRQ 5,7,2/9,10 High-Edge
>
> [root at Baden wei]# more /proc/interrupts
>           CPU0
>  0:      74492          XT-PIC  timer
>  1:       3052          XT-PIC  keyboard
>  2:          0          XT-PIC  cascade
>  4:       5876          XT-PIC  serial
>  5:          0          XT-PIC  usb-uhci
>  8:          1          XT-PIC  rtc
>  9:          1          XT-PIC  AD1848
> 12:        279          XT-PIC  eth0
> 14:        632          XT-PIC  ide0
> 15:      16241          XT-PIC  ide1
> NMI:          0
> ERR:          0
> [root at Baden wei]# more /proc/dma
> 3: AD1848
> 4: cascade
>
>
> Thanks for any help,
>
> Ralf
>
>






More information about the Linux-audio-user mailing list