From nicolls@dsp7.ee.uct.ac.za Wed Mar  3 06:59:54 1999
Return-Path: <nicolls@dsp7.ee.uct.ac.za>
Received: from dsp7.ee.uct.ac.za (dsp7.ee.uct.ac.za [137.158.135.194])
	by hub.freebsd.org (Postfix) with ESMTP id BD3CC14F28
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  3 Mar 1999 06:57:58 -0800 (PST)
	(envelope-from nicolls@dsp7.ee.uct.ac.za)
Received: (from nicolls@localhost)
	by dsp7.ee.uct.ac.za (8.9.2/8.9.2) id QAA70400;
	Wed, 3 Mar 1999 16:59:48 +0200 (SAST)
	(envelope-from nicolls)
Message-Id: <199903031459.QAA70400@dsp7.ee.uct.ac.za>
Date: Wed, 3 Mar 1999 16:59:48 +0200 (SAST)
From: Fred Nicolls <nicolls@dsp7.ee.uct.ac.za>
Reply-To: nicolls@dsp7.ee.uct.ac.za
To: FreeBSD-gnats-submit@freebsd.org
Subject: Sound card buffer allocation failure
X-Send-Pr-Version: 3.2

>Number:         10371
>Category:       kern
>Synopsis:       Sound card buffer allocation failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar  3 07:00:01 PST 1999
>Closed-Date:    Mon Mar 15 02:21:54 PST 1999
>Last-Modified:  Mon Mar 15 02:22:38 PST 1999
>Originator:     Fred Nicolls
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
University of Cape Town
>Environment:
Dual Pentium II on an ASUS P2B-DS motherboard with 512MB RAM.
Also included: 	Asus SB16 clone, Two SCSI disks, Matrox G200 AGP video, 
		ATAPI CDROM, EtherExpress network.
>Description:
The sound card is properly detected and configured by the os PNP controller.
However, with snd0 as the sound controller the initialisation of the device 
fails with the following messages:
	sb0 at 0x220 irq 5 drq 1 on isa
	snd0: <SoundBlaster 16 4.13> 
	sbxvi0 at drq 5 on isa
	snd0: <SoundBlaster 16 4.13> 
	soundcard buffer alloc failed 
	snd: Unable to allocate 131072 bytes of buffer
	sbmidi0 at 0x330 on isa
	snd0: <SoundBlaster MPU-401>
If Luigi's sound code is used no error messages are reported at boot-up, but 
writing to the sound device causes a kernel panic.  

>How-To-Repeat:

	

>Fix:
None that I know of.

>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@iafrica.com>
To: Fred Nicolls <nicolls@dsp7.ee.uct.ac.za>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/10371: Sound card buffer allocation failure
Date: Sun, 14 Mar 1999 19:43:20 +0200

 Hi Fred,
 
 > If Luigi's sound code is used no error messages are reported at
 > boot-up, but writing to the sound device causes a kernel panic.
 
 Writing to which sound device? Remember that, on many systems, you'll
 specify pcm0 in your kernel config, but pcm1 is the one to use. You'd
 want to check dmesg output to see which device to use. My dmesg gives
 me:
 
 pcm1 (SB16pnp <Vibra16X> sn 0xffffffff) at 0x220-0x22f irq 5 drq 1 flags 0x13 on isa
 pcm0 not probed due to drq conflict with pcm1 at 1
 
 I use /dev/audio1 and create symlink /dev/audio which points to it.
 
 Ciao,
 Sheldon.
 
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Sun Mar 14 09:53:08 PST 1999 
State-Changed-Why:  
Possible solution offered, waiting on confirmation. 

From: Fred Nicolls <nicolls@dip.ee.uct.ac.za>
To: freebsd-gnats-submit@freebsd.org, nicolls@dsp7.ee.uct.ac.za,
	sheldonh@iafrica.com
Cc:  
Subject: Re: kern/10371: Sound card buffer allocation failure
Date: Mon, 15 Mar 1999 09:26:43 +0000

 Hi Sheldon,
 
 > Writing to which sound device? Remember that, on many systems, you'll 
 > specify pcm0 in your kernel config, but pcm1 is the one to use. You'd
 > want to check dmesg output to see which device to use. My dmesg gives
 > me:
 >      
 > pcm1 (SB16pnp <Vibra16X> sn 0xffffffff) at 0x220-0x22f irq 5 drq 1 flags 0x13 on isa
 > pcm0 not probed due to drq conflict with pcm1 at 1
 
 Mine gives pretty much the same thing - I was using pcm1.
 
 After a bit more homework, it seems the issue is with the 512 MB RAM.  I
 see that someone else has reported hassles (kern/9515), claiming that
 the problem is with ISA DMA memory in general.  I contacted the author
 of that PR, and he feels that *no* soundcard will work with FreeBSD in a
 machine with 512 Megs or more.
 
 Since I submitted the original report, I've come across about five other
 people having the same problem.  As far as I recall, moving to -current
 sorts it out (but not -stable, as of about a week ago).  I'd give more
 details, but freebsd-questions is down a the moment.
 
 Thanks for the follow-up,
 Fred
 
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Mon Mar 15 02:21:54 PST 1999 
State-Changed-Why:  
Duplicate of kern/9515. 
>Unformatted:
