Skip to contentSkip to conversation

Soundcard problem!

DISCUSSION [email protected] 3 participants 4 messages Nov 12, 1998 Sound

lore
Share & tools
lore
#0 lore raw

Hi,

I have a serious problem with my soundcard which persistently refuses to cooperate with my Linux system. The processor is a PII on an ASUS P2B-DS motherboard. My kernel is brand new:
version 2.1.125, but it seems to work fine so far for anything else but sound. The sound card is a vibra16pnp (by Creative Labs).

Whenever I attempted to use sndconfig, for whichever setup I have chosen, the result was anticipated: A problem appears with modprobe.

Furthermore, when I type: "modprobe sb.o" the answer is:

/lib/modules/2.1.125/misc/sb.o: too many values for dma (max 1)

Has anybody out there seen this attitude before?

I suspect the following details might be useful:

	IRQ = 5
	I/O range = 0220 - 0223, DMA = 05
	I/O range = 0224 - 022F, DMA = 01

I obtained these data using NT diagnostics, so I do cannot be 100% sure that one could rely on them. :-)
(Afterall, I have deleted Microsoft from my computer!)

When I use "pnpdump -c -script=out", the file "out" contains the following information:

	#!/bin/sh
	prefixes="/etc/pnp/config-scripts/isa /usr/share/pnp/config-scripts/isa"

	function pnp_isa_configure {
    		local i id dir found_it
    		i=0
    		while [ "${dev_ids[$i]}" != "" ] ; do
        		id="${dev_ids[$i]}"
			for dir in $prefixes ; do
				if [ -r $dir/$id ] ; then
					source $dir/$id
					return $?
	    			fi
			done
			i=`expr $i + 1`
    		done
	# Failed to find anything
	return 1
	}
	unset irq irq_flags dma dma_flags io_start io_len io_flags
	unset mem_start mem_len mem_flags dev_ids
	board_id=CTL0070
	dev_ids[0]=CTL0001
	irq[0]=5 ; irq_flags[0]=0x00
	dma[0]=1 ; dma_flags[0]=0x08
	dma[1]=5 ; dma_flags[1]=0x12
	io_start[0]=0x0220 ; io_len[0] ; io_flags[0]=0x01
	io_start[1]=0x0330 ; io_len[1]=2  ; io_flags[1]=0x01
	io_start[2]=0x0388 ; io_len[2]=4  ; io_flags[2]=0x01
	pnp_isa_configure
	
	unset irq irq_flags dma dma_flags io_start io_len io_flags
	unset mem_start mem_len mem_flags dev_ids
	board_id=CTL0070
	dev_ids[0]=CTL7001
	dev_ids[2]=PNPb02f
	io_start[0]=0x0200 ; io_len[0]=8  ; io_flags[0]=0x01
	pnp_isa_configure

Strangely enough, the file /etc/modules.conf contains:

	alias sound sb
	options -k sb io=0x220 irq=7 dma=3,5
	alias midi opl3
	options -k opl3 io=0x388

The technical values from these two files are not so consistent, are they? :-)

I will be very grateful for any hint which may help. Thanks in advance, and sorry for the length of this mail. --
___________________________________________________________

   ,-~~-.___.      _____      |
  / |  '     \    /     \     |  Dr. Nikolaos A. Margaritis
 (  )         0   |      \    |  Agias Marinis 40
  \_/-, ,----'    | UNIX  |   |  Larissa 41221
     ==         \______/    |  Hellas (Greece)
    /  \-'~;       __|_|__    |
   /  __/~|  ___  |       |   |  
 =(  _____| (___)_|_______|   |  email: [email protected]
#1 lore raw

Hi,

I have a serious problem with my soundcard which persistently refuses to cooperate with my Linux system. The processor is a PII on an ASUS P2B-DS motherboard. My kernel is brand new:
version 2.1.125, but it seems to work fine so far for anything else but sound. The sound card is a vibra16pnp (by Creative Labs).

Whenever I attempted to use sndconfig, for whichever setup I have chosen, the result was anticipated: A problem appears with modprobe.

Furthermore, when I type: "modprobe sb.o" the answer is:

/lib/modules/2.1.125/misc/sb.o: too many values for dma (max 1)

Has anybody out there seen this attitude before?

I suspect the following details might be useful:

	IRQ = 5
	I/O range = 0220 - 0223, DMA = 05
	I/O range = 0224 - 022F, DMA = 01

I obtained these data using NT diagnostics, so I do cannot be 100% sure that one could rely on them. :-)
(Afterall, I have deleted Microsoft from my computer!)

When I use "pnpdump -c -script=out", the file "out" contains the following information:

	#!/bin/sh
	prefixes="/etc/pnp/config-scripts/isa /usr/share/pnp/config-scripts/isa"

	function pnp_isa_configure {
    		local i id dir found_it
    		i=0
    		while [ "${dev_ids[$i]}" != "" ] ; do
        		id="${dev_ids[$i]}"
			for dir in $prefixes ; do
				if [ -r $dir/$id ] ; then
					source $dir/$id
					return $?
	    			fi
			done
			i=`expr $i + 1`
    		done
	# Failed to find anything
	return 1
	}
	unset irq irq_flags dma dma_flags io_start io_len io_flags
	unset mem_start mem_len mem_flags dev_ids
	board_id=CTL0070
	dev_ids[0]=CTL0001
	irq[0]=5 ; irq_flags[0]=0x00
	dma[0]=1 ; dma_flags[0]=0x08
	dma[1]=5 ; dma_flags[1]=0x12
	io_start[0]=0x0220 ; io_len[0] ; io_flags[0]=0x01
	io_start[1]=0x0330 ; io_len[1]=2  ; io_flags[1]=0x01
	io_start[2]=0x0388 ; io_len[2]=4  ; io_flags[2]=0x01
	pnp_isa_configure
	
	unset irq irq_flags dma dma_flags io_start io_len io_flags
	unset mem_start mem_len mem_flags dev_ids
	board_id=CTL0070
	dev_ids[0]=CTL7001
	dev_ids[2]=PNPb02f
	io_start[0]=0x0200 ; io_len[0]=8  ; io_flags[0]=0x01
	pnp_isa_configure

Strangely enough, the file /etc/modules.conf contains:

	alias sound sb
	options -k sb io=0x220 irq=7 dma=3,5
	alias midi opl3
	options -k opl3 io=0x388

The technical values from these two files are not so consistent, are they? :-)

I will be very grateful for any hint which may help. Thanks in advance, and sorry for the length of this mail. --
___________________________________________________________

   ,-~~-.___.      _____      |
  / |  '     \    /     \     |  Dr. Nikolaos A. Margaritis
 (  )         0   |      \    |  Agias Marinis 40
  \_/-, ,----'    | UNIX  |   |  Larissa 41221
     ==         \______/    |  Hellas (Greece)
    /  \-'~;       __|_|__    |
   /  __/~|  ___  |       |   |  
 =(  _____| (___)_|_______|   |  email: [email protected]
#2 lore raw
In reply to [email protected]

DMA should equal 5 or 1.. Not 05 or 01

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3i

mQCNAzYHUrIAAAEEAMAXsThllSKVcUUK9VJWpf6zaJiSSbU2w8qxVGdNPTe1PWC8 sGNCD+u13eLM6y+S+/RquJCTuRUQW3DKLfi7/NxaFvGqJi4/vr/XPOky2vDlZqm2 wTk+/J7MgYtT7K2jawlEWW3HvDdJIPpSe8E8PcolX2Qz5aaLIHNiXOzrvTlJAAUR tChNYXR0aGV3IEIuIE1hcmxvd2UgPG1hcmxvd2VAYWxmaGVpbS5uZXQ+iQCUAwUQ NgdSsnNiXOzrvTlJAQHg5gP1EPvDIHqJZV771lhE1ZuPwkYTH2OQQp8lA9ezP+Rd 2lMYvzqfIq4DcM5dGNuU3dYy9tZDsOpqdjzzyP3DPkJoDTT2AzX5gV8GX/HA+FBd BqdlXIU54BJbAo5RBmKqU8bq0KXPvlmnxYxhvze6UD/Ae6Qb12tR7OYmaC5659RF 7Q=
Àyt
-----END PGP PUBLIC KEY BLOCK-----

Quoted 95 lines · Nikolaos Margaritis

Hi,

I have a serious problem with my soundcard which persistently refuses to cooperate with my Linux system. The processor is a PII on an ASUS P2B-DS motherboard. My kernel is brand new:
version 2.1.125, but it seems to work fine so far for anything else but sound. The sound card is a vibra16pnp (by Creative Labs).

Whenever I attempted to use sndconfig, for whichever setup I have chosen, the result was anticipated: A problem appears with modprobe.

Furthermore, when I type: "modprobe sb.o" the answer is:

/lib/modules/2.1.125/misc/sb.o: too many values for dma (max 1)

Has anybody out there seen this attitude before?

I suspect the following details might be useful:

	IRQ = 5
	I/O range = 0220 - 0223, DMA = 05
	I/O range = 0224 - 022F, DMA = 01

I obtained these data using NT diagnostics, so I do cannot be 100% sure that one could rely on them. :-)
(Afterall, I have deleted Microsoft from my computer!)

When I use "pnpdump -c -script=out", the file "out" contains the following information:

	#!/bin/sh
	prefixes="/etc/pnp/config-scripts/isa /usr/share/pnp/config-scripts/isa"

	function pnp_isa_configure {
    		local i id dir found_it
    		i=0
    		while [ "${dev_ids[$i]}" != "" ] ; do
        		id="${dev_ids[$i]}"
			for dir in $prefixes ; do
				if [ -r $dir/$id ] ; then
					source $dir/$id
					return $?
	    			fi
			done
			i=`expr $i + 1`
    		done
	# Failed to find anything
	return 1
	}
	unset irq irq_flags dma dma_flags io_start io_len io_flags
	unset mem_start mem_len mem_flags dev_ids
	board_id=CTL0070
	dev_ids[0]=CTL0001
	irq[0]=5 ; irq_flags[0]=0x00
	dma[0]=1 ; dma_flags[0]=0x08
	dma[1]=5 ; dma_flags[1]=0x12
	io_start[0]=0x0220 ; io_len[0] ; io_flags[0]=0x01
	io_start[1]=0x0330 ; io_len[1]=2  ; io_flags[1]=0x01
	io_start[2]=0x0388 ; io_len[2]=4  ; io_flags[2]=0x01
	pnp_isa_configure
	
	unset irq irq_flags dma dma_flags io_start io_len io_flags
	unset mem_start mem_len mem_flags dev_ids
	board_id=CTL0070
	dev_ids[0]=CTL7001
	dev_ids[2]=PNPb02f
	io_start[0]=0x0200 ; io_len[0]=8  ; io_flags[0]=0x01
	pnp_isa_configure

Strangely enough, the file /etc/modules.conf contains:

	alias sound sb
	options -k sb io=0x220 irq=7 dma=3,5
	alias midi opl3
	options -k opl3 io=0x388

The technical values from these two files are not so consistent, are they? :-)

I will be very grateful for any hint which may help. Thanks in advance, and sorry for the length of this mail. --
___________________________________________________________

   ,-~~-.___.      _____      |
  / |  '     \    /     \     |  Dr. Nikolaos A. Margaritis
 (  )         0   |      \    |  Agias Marinis 40
  \_/-, ,----'    | UNIX  |   |  Larissa 41221
     ==         \______/    |  Hellas (Greece)
    /  \-'~;       __|_|__    |
   /  __/~|  ___  |       |   |  
 =(  _____| (___)_|_______|   |  email: [email protected]
#3 lore raw
In reply to [email protected]
Quoted 2 lines · Nikolaos Margaritis

When I use "pnpdump -c -script=out", the file "out" contains the following

what pnptools version are you using? Mine (1.13) doesn't seem to like these options.

[...]

Quoted 2 lines
	alias sound sb
	options -k sb io=0x220 irq=7 dma=3,5

I don't think the sb module can accept two values for dma, you need to give separate "dma" and "dma16" options

FYI in my conf.modules I have these lines:

	alias sound sb
	options sb io=0x220 irq=5 dma=1 dma16=5 mpu_io=0x330
	alias midi opl3
	options opl3 io=0x388

(The same settings work fine on an old non-PNP sb16 card, on an awe32 sb pnp, and on a friend's ess)

Unfortunately, in 2.1.127 a bug seems to make impossible removing the sb module without rebooting.

Here is my isapnp.conf (to make my awe32 pnp sb card work):

	(READPORT 0x020b)
	(ISOLATE)
	(IDENTIFY *)
	(CONFIGURE CTL00c5/392940333 (LD 0
	  (INT 0 (IRQ 5 (MODE +E)))
	  (DMA 1 (CHANNEL 5))
	  (IO 0 (BASE 0x0220))
	  (IO 1 (BASE 0x0330))
	  (IO 2 (BASE 0x0388))
	  (ACT Y)
	))

-Michele