From pb@fasterix.freenix.fr  Fri May 26 07:58:56 1995
Received: from jabba.fdn.org (jabba.fdn.org [193.55.4.70])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id HAA27509
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 May 1995 07:58:48 -0700
Received: (from uucp@localhost) by jabba.fdn.org (8.6.8/8.6.9) with UUCP id QAA02896 for FreeBSD-gnats-submit@freebsd.org; Fri, 26 May 1995 16:58:35 +0200
Received: (pb@localhost) by fasterix.frmug.fr.net (8.6.11/fasterix-941011) id QAA00364; Fri, 26 May 1995 16:26:16 +0200
Message-Id: <199505261426.QAA00364@fasterix.frmug.fr.net>
Date: Fri, 26 May 1995 16:26:16 +0200
From: Pierre Beyssac <pb@fasterix.freenix.fr>
Reply-To: pb@fasterix.freenix.fr
To: FreeBSD-gnats-submit@freebsd.org
Subject: problems with sound driver for GUS
X-Send-Pr-Version: 3.2

>Number:         444
>Category:       i386
>Synopsis:       GUS sound driver does not seem to work.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jkh
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 26 08:00:01 1995
>Closed-Date:    Sun Jun 2 21:35:04 PDT 1996
>Last-Modified:  Sun Jun  2 21:36:00 PDT 1996
>Originator:     Pierre Beyssac
>Release:        FreeBSD 2.0-BUILT-19950526 i386
>Organization:
Pierre Beyssac
>Environment:

	FreeBSD-current kernel, Gravis Ultrasound Max card.

>Description:

	cat'ting a long (620Kb) .au file to /dev/audio results in
	the driver looping on (approx) the first 8 seconds.

	cat is probably stuck in a write() because a kill -KILL
	does not stop it.

	cat'ting the same file to /dev/audio1 correctly plays the
	entire file but there are 'holes' in the sound in at least
	two places (about 0.1s filled with garbage or repeating
	previous sounds), around 12s and 26s from the beginning.

$ ls -l /dev/audio /dev/audio1
crw-rw-rw-  1 root  wheel   30,   4 May 26 14:53 /dev/audio
crw-rw-rw-  1 root  wheel   30,  20 May 26 16:10 /dev/audio1

Here are the boot messages. Note that "gusmax0" is not found.

May 26 16:04:43 fasterix /kernel: gus0 at 0x220 irq 12 drq 1 on isa
May 26 16:04:43 fasterix /kernel: gus0: <Gravis UltraSound MAX (512k)>
May 26 16:04:43 fasterix /kernel: gusmax0 not found at 0x32c

Relevant bits from kernel config :

options		CONFIGURE_SOUNDCARD
options		"EXCLUDE_MPU401"
options		EXCLUDE_SB
options		EXCLUDE_SBPRO
options		"EXCLUDE_SB16"
options		"EXCLUDE_YM3812"
options		"EXCLUDE_OPL3"
options		EXCLUDE_PAS
options		EXCLUDE_MIDI

# Controls all sound devices
controller	snd0

# Gravis UltraSound - for GUS, GUS16, GUSMAX
device gus0 at isa? port 0x220 irq 12 drq 1 vector gusintr
# Gravis UltraSound MAX - for GUSMAX - requires gus0
device gusmax0 at isa? port 0x32c

	"file" describes the file as (note the strange sampling rate) :
		audio data: 8-bit u-law, mono, 64 Hz

	Note: the same file works fine on a Sun Sparc running SunOS 4.

>How-To-Repeat:

	See above.
	I can provide the file if necessary. Or you can look for
	casimir.au with archie :-)

>Fix:

	None known.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: scrappy 
Responsible-Changed-When: Sun May 26 15:34:41 PDT 1996 
Responsible-Changed-Why:  
seems to be where patches and all fall... 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Sun Jun 2 21:35:04 PDT 1996 
State-Changed-Why:  
The sound driver has been beaten into different states 
of brokenness since this PR was filed.  GUS MAX appears to 
work OK. 
>Unformatted:


