Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2000 21:17:01 -0700 (MST)
From:      ken@kdm.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/17542: random static with GUS PnP
Message-ID:  <200003220417.VAA44192@panzer.kdm.org>

next in thread | raw e-mail | index | archive | help

>Number:         17542
>Category:       kern
>Synopsis:       random static with GUS PnP
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 21 20:20:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Kenneth D. Merry
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
KDM Enterprises
>Environment:

Current box from the end of February:

FreeBSD panzer.kdm.org 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Sat Feb 26 19:57:24 MST 2000 ken@panzer.kdm.org:/a/ken/perforce/FreeBSD-ken/src/sys/compile/panzer  i386

This is a dual Pentium Pro 200 box, with 192MB of RAM and a GUS PnP Pro
(the GUS PnP "Pro" has 512K of onboard memory):

Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #0: Sat Feb 26 19:57:24 MST 2000
    ken@panzer.kdm.org:/a/ken/perforce/FreeBSD-ken/src/sys/compile/panzer
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium Pro (199.43-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x617  Stepping = 7
Features=0xfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV>
real memory  = 201326592 (196608K bytes)
avail memory = 191422464 (186936K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Preloaded elf kernel "kernel" at 0xc036e000.
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface

[ ... ]

gusc0: <Gravis UltraSound Plug & Play PCM> at port 0x220-0x22f,0x320-0x327,0x32c-0x32f irq 9,11 drq 0,1 on isa0
pcm0: <GUS CS4231> on gusc0
unknown0: <ATAPI CD-ROM> at port 0x170-0x177,0x376-0x377 irq 15 drq 3 on isa0
unknown1: <Game Port> at port 0x201 on isa0
unknown2: <SB Digital Audio> at port 0x388-0x389 irq 5 on isa0
unknown3: <GM Music> at irq 10 on isa0

Kernel config file options:

device          pcm0
device          gusc0

# cat /dev/sndstat 
FreeBSD Audio Driver (newpcm) Feb 26 2000 19:55:06
Installed devices:
pcm0: <GUS CS4231> at io 0x32c irq 9 drq 1:0 (1p/1r channels duplex)

>Description:

The problem is that I sometimes get static instead of normal sound when I
play sound files with one of the following applications compiled from the
ports tree:

 - mpg123
 - amp
 - pcmplay (comes with tosha)
 - waveplay 

If I control-C out of the sound file once the static starts, and then start
it again, usually I don't get any static.

I think in general, this happens 1 in 10 or 20 times I try to play a sound
file.

For what it's worth, both Voxware (after Amancio hacked on it for a while)
and Luigi's pcm code didn't behave like this,

This has been a problem since the newpcm introduction.

Sometimes, after I've gotten static while playing a sound file, I hear a
hissing sound in either the left or right channel from subsequent sound
files.  There are only two ways I know of to "fix" that behavior:

 - reboot the box
 - keep cranking up sound player programs and ^C out of them until I get
   another round of static.  Usually this will take care of the problem.

Recompiling the applications and/or updating to newer versions doesn't
help.  Also, this can happen with any sound file I've tried.  Most of the
sound files I'm using are 16bit, 44KHz stereo.

Let me know if more information is needed.

>How-To-Repeat:

See above.

>Fix:

If I knew, this wouldn't be a problem. :)

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003220417.VAA44192>