Skip to contentSkip to conversation

help needed for my AD1816A based soundcard

DISCUSSION Robert Joop 2 participants 7 messages Mar 29, 2002 – Mar 31, 2002

lore
Share & tools
lore
#0 lore raw

alsa's ad1816a driver doesn't find my card.
i've ISAPNP turned on.
the card is a Highscreen Sound-Boostar 32 Wave 3D, it doesn't seem to have an entry in card-ad1816a.c.
the entries in snd_ad1816a_pnpids[] look rather esoteric and i haven't found any documentation on adding an entry.
how do i collect the necessary information?
is it sufficient just adding an entry to the array?

the card has an AD1816A and two DSP chips on it.

(btw, with kernel 2.2.x's sb driver the card worked, but 2.4.18's sb it hangs the computer.
and kernel 2.4.18's ad1816 driver doesn't detect the card either.)

rj

#1 lore raw
Quoted 9 lines · Robert Joop

alsa's ad1816a driver doesn't find my card.
i've ISAPNP turned on.
the card is a Highscreen Sound-Boostar 32 Wave 3D, it doesn't seem to have an entry in card-ad1816a.c.
the entries in snd_ad1816a_pnpids[] look rather esoteric and i haven't found any documentation on adding an entry.
how do i collect the necessary information?
is it sufficient just adding an entry to the array?

Quoted 5 lines

the card has an AD1816A and two DSP chips on it.

(btw, with kernel 2.2.x's sb driver the card worked, but 2.4.18's sb it hangs the computer.
and kernel 2.4.18's ad1816 driver doesn't detect the card either.)

btw, i'm using debian's alsa-source 0.9+0beta10-6 package.

what makes me wonder is:
- at boot time, the BIOS says it initializes the plug and play cards and detects the sound card, it prints its name.
- but the linux ISA PNP does not seem to detect it:

  Mar 30 19:20:13 moonbow kernel: isapnp: Scanning for PnP cards...
  Mar 30 19:20:13 moonbow kernel: isapnp: No Plug & Play device found
- nor does the soundcard driver:
  Mar 30 19:20:18 moonbow kernel: ALSA card-ad1816a.c:348: no AD1816A based soundcards found.

i've tried to make some sense of the output of pnpdump(1) and added an entry to snd_ad1816a_pnpids[], but it hasn't helped.

rj

#2 lore raw

From: Robert Joop <[email protected]>

Quoted 4 lines

what makes me wonder is:
- at boot time, the BIOS says it initializes the plug and play cards and detects the sound card, it prints its name.
- but the linux ISA PNP does not seem to detect it:

Quoted 8 lines
  Mar 30 19:20:13 moonbow kernel: isapnp: Scanning for PnP cards...
  Mar 30 19:20:13 moonbow kernel: isapnp: No Plug & Play device found
- nor does the soundcard driver:
  Mar 30 19:20:18 moonbow kernel: ALSA card-ad1816a.c:348: no
  AD1816A based soundcards found.

i've tried to make some sense of the output of pnpdump(1) and added an entry to snd_ad1816a_pnpids[], but it hasn't helped.

pnpdump does find the card and 'kernel isapnp' does not? You have a problem beyound ALSA.

What is pnpdump saying? Maybe some parameters to isa-pnp.o can help. At least isapnp_verbose I think. Look for MODULE_PARM in linux/drivers/pnp/isapnp.c

Bye,
Robert

#3 lore raw
Quoted 15 lines · Robert Siemer

From: Robert Joop <[email protected]>

Quoted 4 lines

what makes me wonder is:
- at boot time, the BIOS says it initializes the plug and play cards and detects the sound card, it prints its name.
- but the linux ISA PNP does not seem to detect it:

Quoted 8 lines
  Mar 30 19:20:13 moonbow kernel: isapnp: Scanning for PnP cards...
  Mar 30 19:20:13 moonbow kernel: isapnp: No Plug & Play device found
- nor does the soundcard driver:
  Mar 30 19:20:18 moonbow kernel: ALSA card-ad1816a.c:348: no
  AD1816A based soundcards found.

i've tried to make some sense of the output of pnpdump(1) and added an entry to snd_ad1816a_pnpids[], but it hasn't helped.

Quoted 6 lines

pnpdump does find the card and 'kernel isapnp' does not? You have a problem beyound ALSA.

What is pnpdump saying? Maybe some parameters to isa-pnp.o can help. At least isapnp_verbose I think. Look for MODULE_PARM in linux/drivers/pnp/isapnp.c

isapnp_verbose=2 doesn't produce more output, i've even inserted a printk line into isapnp_init() to make sure the variable setting in /etc/modules.conf actually worked...
if i understand the code correctly, the variable ist set to 1 by default and would have listed all cards found anyway.

Mar 31 01:16:36 moonbow kernel: isapnp: isapnp_verbose=2 [rj]
Mar 31 01:16:36 moonbow kernel: isapnp: Scanning for PnP cards...
Mar 31 01:16:36 moonbow kernel: isapnp: No Plug & Play device found

the pnpdump output is appended.
the line i inserted into /usr/src/modules/alsa-driver/cards/card-ad1816a.c is

        ISAPNP_AD1816A('L','W','C',0x1060,'A','D','S',0x7180,0x7181),

(but it made no difference).

any suggestions?

--rj

# $Id: pnpdump_main.c,v 1.27 2001/04/30 21:54:53 fox Exp $
# Release isapnptools-1.26
#
# This is free software, see the sources for details.
# This software has NO WARRANTY, use at your OWN RISK
#
# For details of the output file format, see isapnp.conf(5)
#
# For latest information and FAQ on isapnp and pnpdump see:
# http://www.roestock.demon.co.uk/isapnptools/
#
# Compiler flags: -DREALTIME -DHAVE_PROC -DENABLE_PCI -DHAVE_SCHED_SETSCHEDULER -DHAVE_NANOSLEEP -DWANT_TO_VALIDATE #
# Trying port address 0273
# Board 1 has serial identifier 00 ff ff ff ff 60 10 e3 32

# (DEBUG)
(READPORT 0x0273)
(ISOLATE PRESERVE)
(IDENTIFY *)
(VERBOSITY 2)
(CONFLICT (IO FATAL)(IRQ FATAL)(DMA FATAL)(MEM FATAL)) # or WARNING

# Card 1: (serial identifier 00 ff ff ff ff 60 10 e3 32) # Vendor Id LWC1060, No Serial Number (-1), checksum 0x00. # Version 1.0, Vendor version 1.4
# ANSI string -->HIGHSCREEN SOUNDBOOSTAR 32 WAVE 3D<-- #
# Logical device id ADS7180

#     Device supports I/O range check register
#     Device supports vendor reserved register @ 0x3a
#     Device supports vendor reserved register @ 0x3b
#     Device supports vendor reserved register @ 0x3d

#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required # Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE LWC1060/-1 (LD 0

# Multiple choice time, choose one only !

# Start dependent functions: priority preferred
# IRQ 5.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 5 (MODE +E)))
# First DMA channel 1.

#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 0 (CHANNEL 1))
#       Next DMA channel 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 1 (CHANNEL 3))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0220
#             Maximum IO base address 0x0220
#             IO base alignment 32 bytes
#             Number of IO addresses required: 16
# (IO 0 (SIZE 16) (BASE 0x0220) (CHECK))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x0388
#             IO base alignment 8 bytes
#             Number of IO addresses required: 4
# (IO 1 (SIZE 4) (BASE 0x0388) (CHECK))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0530
#             Maximum IO base address 0x0530
#             IO base alignment 8 bytes
#             Number of IO addresses required: 16

# (IO 2 (SIZE 16) (BASE 0x0530) (CHECK))

# Start dependent functions: priority acceptable
# IRQ 5 or 7.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 5 (MODE +E)))
# First DMA channel 0, 1 or 3.

#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 0 (CHANNEL 0))
#       Next DMA channel 0, 1 or 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 1 (CHANNEL 0))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0220
#             Maximum IO base address 0x0240
#             IO base alignment 32 bytes
#             Number of IO addresses required: 16
# (IO 0 (SIZE 16) (BASE 0x0220) (CHECK))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x0388
#             IO base alignment 8 bytes
#             Number of IO addresses required: 4
# (IO 1 (SIZE 4) (BASE 0x0388) (CHECK))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0530
#             Maximum IO base address 0x0530
#             IO base alignment 16 bytes
#             Number of IO addresses required: 16

# (IO 2 (SIZE 16) (BASE 0x0530) (CHECK))

# Start dependent functions: priority functional
# IRQ 5, 7 or 10.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 5 (MODE +E)))
# First DMA channel 0, 1 or 3.

#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 0 (CHANNEL 0))
#       Next DMA channel 0, 1 or 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 1 (CHANNEL 0))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0220
#             Maximum IO base address 0x0280
#             IO base alignment 32 bytes
#             Number of IO addresses required: 16
# (IO 0 (SIZE 16) (BASE 0x0220) (CHECK))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x03b8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 4
# (IO 1 (SIZE 4) (BASE 0x0388) (CHECK))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0500
#             Maximum IO base address 0x0560
#             IO base alignment 16 bytes
#             Number of IO addresses required: 16

# (IO 2 (SIZE 16) (BASE 0x0500) (CHECK))

# Start dependent functions: priority functional
# IRQ 5, 7, 10 or 11.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 5 (MODE +E)))
# First DMA channel 0, 1 or 3.

#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 0 (CHANNEL 0))
#       *** ERROR *** No DMA channel specified!
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 1 (CHANNEL 4))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0220
#             Maximum IO base address 0x0280
#             IO base alignment 32 bytes
#             Number of IO addresses required: 16
# (IO 0 (SIZE 16) (BASE 0x0220) (CHECK))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x03b8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 4
# (IO 1 (SIZE 4) (BASE 0x0388) (CHECK))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0500
#             Maximum IO base address 0x0620
#             IO base alignment 16 bytes
#             Number of IO addresses required: 16

# (IO 2 (SIZE 16) (BASE 0x0500) (CHECK))

# Start dependent functions: priority functional
# IRQ 5, 7, 9, 10, 11 or 15.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 5 (MODE +E)))
# First DMA channel 0, 1 or 3.

#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 0 (CHANNEL 0))
#       *** ERROR *** No DMA channel specified!
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 1 (CHANNEL 4))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0220
#             Maximum IO base address 0x0280
#             IO base alignment 32 bytes
#             Number of IO addresses required: 16
# (IO 0 (SIZE 16) (BASE 0x0220) (CHECK))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x03b8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 4
# (IO 1 (SIZE 4) (BASE 0x0388) (CHECK))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0500
#             Maximum IO base address 0x0620
#             IO base alignment 16 bytes
#             Number of IO addresses required: 16

# (IO 2 (SIZE 16) (BASE 0x0500) (CHECK))

# End dependent functions
(NAME "LWC1060/-1[0]{HIGHSCREEN SOUNDBOOSTAR 32 WAVE 3D}")
# (ACT Y)
))
#
# Logical device id ADS7181

#     Device supports I/O range check register
#     Device supports vendor reserved register @ 0x3b
#     Device supports vendor reserved register @ 0x3c
#     Device supports vendor reserved register @ 0x3e

#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required # Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE LWC1060/-1 (LD 1
# Compatible device id PNPb006

# Multiple choice time, choose one only !

# Start dependent functions: priority preferred
# IRQ 9.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 9 (MODE +E)))
# Logical device decodes 16 bit IO address lines

#             Minimum IO base address 0x0330
#             Maximum IO base address 0x0330
#             IO base alignment 16 bytes
#             Number of IO addresses required: 2

# (IO 0 (SIZE 2) (BASE 0x0330) (CHECK))

# Start dependent functions: priority acceptable
# IRQ 9.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 9 (MODE +E)))
# Logical device decodes 16 bit IO address lines

#             Minimum IO base address 0x0300
#             Maximum IO base address 0x0330
#             IO base alignment 16 bytes
#             Number of IO addresses required: 2

# (IO 0 (SIZE 2) (BASE 0x0300) (CHECK))

# Start dependent functions: priority functional
# IRQ 9, 10, 11 or 15.
# High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 9 (MODE +E)))
# Logical device decodes 16 bit IO address lines

#             Minimum IO base address 0x0300
#             Maximum IO base address 0x0330
#             IO base alignment 16 bytes
#             Number of IO addresses required: 2

# (IO 0 (SIZE 2) (BASE 0x0300) (CHECK))

# End dependent functions
(NAME "LWC1060/-1[1]{HIGHSCREEN SOUNDBOOSTAR 32 WAVE 3D}")
# (ACT Y)
))
#
# Logical device id ADS7182

#     Device supports I/O range check register
#     Device supports vendor reserved register @ 0x3b
#     Device supports vendor reserved register @ 0x3c
#     Device supports vendor reserved register @ 0x3e

#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required # Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE LWC1060/-1 (LD 2
# Compatible device id PNPb02f

# Multiple choice time, choose one only !

# Start dependent functions: priority preferred
# Logical device decodes 16 bit IO address lines

#             Minimum IO base address 0x0200
#             Maximum IO base address 0x0200
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8

# (IO 0 (SIZE 8) (BASE 0x0200) (CHECK))

# Start dependent functions: priority acceptable
# Logical device decodes 16 bit IO address lines

#             Minimum IO base address 0x0200
#             Maximum IO base address 0x0208
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8

# (IO 0 (SIZE 8) (BASE 0x0200) (CHECK))

# End dependent functions
(NAME "LWC1060/-1[2]{HIGHSCREEN SOUNDBOOSTAR 32 WAVE 3D}")
# (ACT Y)
))
#
# Logical device id TER2211

#     Device supports I/O range check register
#     Device supports vendor reserved register @ 0x3b
#     Device supports vendor reserved register @ 0x3c
#     Device supports vendor reserved register @ 0x3e

#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required # Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE LWC1060/-1 (LD 3

# Multiple choice time, choose one only !

# Start dependent functions: priority preferred
# Logical device decodes 16 bit IO address lines

#             Minimum IO base address 0x0590
#             Maximum IO base address 0x0590
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8

# (IO 0 (SIZE 8) (BASE 0x0590) (CHECK))

# Start dependent functions: priority acceptable
# Logical device decodes 16 bit IO address lines

#             Minimum IO base address 0x0590
#             Maximum IO base address 0x05a8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8

# (IO 0 (SIZE 8) (BASE 0x0590) (CHECK))

# Start dependent functions: priority functional
# Logical device decodes 16 bit IO address lines

#             Minimum IO base address 0x0590
#             Maximum IO base address 0x05c8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8

# (IO 0 (SIZE 8) (BASE 0x0590) (CHECK))

# End dependent functions
(NAME "LWC1060/-1[3]{HIGHSCREEN SOUNDBOOSTAR 32 WAVE 3D}")
# (ACT Y)
))
# End tag... Checksum 0x00 (OK)

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

#4 lore raw

Re!

From: Robert Joop <[email protected]>

Quoted 5 lines · Robert Siemer
Quoted 3 lines

pnpdump does find the card and 'kernel isapnp' does not? You have a problem beyound ALSA.

Quoted 7 lines

the line i inserted into /usr/src/modules/alsa-driver/cards/card-ad1816a.c is

        ISAPNP_AD1816A('L','W','C',0x1060,'A','D','S',0x7180,0x7181),

(but it made no difference).
any suggestions?

You don't need to try anything with ALSA code, as 'kernel isapnp' does not find your card.

[pnpdump output]

Quoted 1 line

# Trying port address 0273

Try isapnp_rdp=0x273 and play with isapnp_reset module parameter. Look in linux/MAINTAINERS. Search with ISAPNP and maybe PNP for contacts. I cant help here.

Bye,
Robert

#5 lore raw
Quoted 2 lines · Robert Siemer

You don't need to try anything with ALSA code, as 'kernel isapnp' does not find your card.

ok, if you are sure about this.
i must admit that i didn't give the kernel isapnp's output much attention, because i read somewhere that alsa does its own isapnp.

Quoted 1 line

Try isapnp_rdp=0x273 and play with isapnp_reset module parameter.

doesn't help.

is pnp necessary anyway?!
this is the first time ever (in about 9 years of using linux) that i give pnp a try.
with kernel 2.2.19 it was just

alias sound-slot-0 gen_sound
alias sound-service-0-3 gen_sound
alias gen_sound sb
options sb io=0x220 irq=5 dma=1 dma16=0

but this hangs the machine with 2.4.18, and i couldn't find out the correct module parameters for neither the kernel's ad1816 driver nor alsa's...

rj

#6 lore raw
Quoted 5 lines · Robert Joop

is pnp necessary anyway?!
this is the first time ever (in about 9 years of using linux) that i give pnp a try.
with kernel 2.2.19 it was just

Quoted 8 lines

alias sound-slot-0 gen_sound
alias sound-service-0-3 gen_sound
alias gen_sound sb
options sb io=0x220 irq=5 dma=1 dma16=0

but this hangs the machine with 2.4.18, and i couldn't find out the correct module parameters for neither the kernel's ad1816 driver nor alsa's...

...until now.
i just permutated pnpdump's output and one combination actually works:

modprobe ad1816 io=0x530 irq=5 dma=1 dma2=3

strange that the io port is so much different.
and that's the kernel's driver, but the alsa driver is more demanding, it wants two more ports and one more IRQ.

perhaps i better stop with what i've got now, "if it ain't broke, don't fix it"...

thanks for listening!
(and i'll keep using the alsa driver on the laptop. :-)

rj