[2.1.xxx sound] GUS PnP DMA timeout

Renaud Guerin (renaudg@hexanet.fr)
Sat, 29 Aug 1998 19:15:08 +0200


I still can't get sound working properly with 2.1.119 and my GUS PnP
I built the sound drivers as modules.
The problem has been here at least since the early 2.1.1xx, and I hope
that it can be fixed before 2.2 is released.
I have posted this 3 times here already and got no response, so I'm
wondering if I made a stupid configuration error that's not worth an
answer :)
If so, please help me anyway :)

Here's the problem:

Every 64K sound chunk seems to be played 3 times and I get this error:
"Sound: DMA (output) timed out - IRQ/DRQ config error?"

(seemingly every 64K)

I'm using isapnp v1.13

isapnp.conf :
------------------
(READPORT 0x0203)
(ISOLATE)
(IDENTIFY *)
(CONFIGURE GRV0001/-1 (LD 0
(INT 0 (IRQ 11 (MODE +E)))
(DMA 0 (CHANNEL 5))
(DMA 1 (CHANNEL 7))
(IO 0 (BASE 0x0220))
(IO 1 (BASE 0x0320))
(IO 2 (BASE 0x032c))
(ACT Y)
))
(CONFIGURE GRV0001/-1 (LD 1
(ACT Y)
))
(CONFIGURE GRV0001/-1 (LD 2
(IO 0 (BASE 0x0201))
(ACT Y)
))
(CONFIGURE GRV0001/-1 (LD 3
(DMA 0 (CHANNEL 1))
(INT 0 (IRQ 5 (MODE +E)))
(IO 0 (BASE 0x0388))
(ACT Y)
))
(CONFIGURE GRV0001/-1 (LD 4
(IO 0 (BASE 0x0330))
(ACT Y)
))
(WAITFORKEY)
------------------

/etc/conf.modules :

alias char-major-14 gus
options gus io=0x220 irq=11 dma=5 dma16=7

------------------

/usr/src/linux/.config (excerpts) :

CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

CONFIG_PNP=y
CONFIG_PNP_PARPORT=m

CONFIG_SOUND=m
CONFIG_SOUND_OSS=m
CONFIG_SOUND_GUS=m
CONFIG_GUSMAX=y
CONFIG_SOUND_VMIDI=m

------------------
On "modprobe gus", this appears in /var/log/messages :

Aug 29 18:32:46 saturne kernel: ad1848/cs4248 codec driver Copyright (C)
by Hannu Savolainen 1993-1996
Aug 29 18:32:47 saturne kernel: Gravis Ultrasound audio driver Copyright
(C) by Hannu Savolainen 1993-1996

------------------
/dev/sndstat :

OSS/Free:3.8s2++-971130
Load type: Driver loaded as a module
Kernel: Linux saturne.hexanet.fr 2.1.119 #6 sam aoû 29 16:19:52 CEST
1998 i586
Config options: 0

Installed drivers:

Card config:

Audio devices:
0: GUS PnP (IWave) (DUPLEX)
1: Ultrasound

Synth devices:
0: Gravis UltraSound PnP (2048k)

Midi devices:
0: Gravis UltraSound Midi

Timers:
0: System clock

Mixers:
0: GUS PnP (IWave)
1: Gravis Ultrasound

--------------------
/proc/ioports :

0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0220-022f : GUS
02f8-02ff : serial(auto)
0320-032b : GUS
032c-032f : GUS PnP
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
e000-e01f : eth0
e800-e807 : ide0
e808-e80f : ide1
-------------------
/proc/dma :

4: cascade
5: GUS
7: GUS(2)
-------------------
/proc/interrupts :

CPU0
0: 67868 XT-PIC timer
1: 3318 XT-PIC keyboard
2: 0 XT-PIC cascade
4: 35 XT-PIC serial
9: 0 XT-PIC eth0
11: 0 XT-PIC Gravis Ultrasound
13: 1 XT-PIC fpu
14: 5673 XT-PIC ide0
15: 2 XT-PIC ide1
NMI: 0

------------------

I can't see where the IRQ/DRQ config error is.
I have tried several others IRQ/DMA combinations, same problem.

Last but not least, everything works perfectly with 2.0.35...
Thanks for your help.

--
/--------------------------------------\
| Renaud Guerin - renaudg@hexanet.fr   |
| rguerin@iut-info.ens.univ-reims.fr   |
| http://www.hexanet.fr/~renaudg       |
| CS student (Reims,France)            |
| Linux supporter http://www.linux.org |
\--------------------------------------/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html