From owner-freebsd-questions@FreeBSD.ORG Tue Sep 23 10:43:56 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0013716A4B3 for ; Tue, 23 Sep 2003 10:43:55 -0700 (PDT) Received: from imf23aec.mail.bellsouth.net (imf23aec.mail.bellsouth.net [205.152.59.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DAA043FF2 for ; Tue, 23 Sep 2003 10:43:54 -0700 (PDT) (envelope-from nickpub@imap.cc) Received: from imap.cc ([68.211.70.71]) by imf23aec.mail.bellsouth.net (InterMail vM.5.01.05.27 201-253-122-126-127-20021220) with ESMTP id <20030923174353.JJOC20055.imf23aec.mail.bellsouth.net@imap.cc> for ; Tue, 23 Sep 2003 13:43:53 -0400 Message-ID: <3F708660.4080101@imap.cc> Date: Tue, 23 Sep 2003 13:44:00 -0400 From: Nicholas Holley User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20030909 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <3F6E82B4.9020602@imap.cc> <1064266006.2216.19.camel@endeavour.localnet.radiotube.org> In-Reply-To: <1064266006.2216.19.camel@endeavour.localnet.radiotube.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: soundcard stopping? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2003 17:43:56 -0000 Jan-Espen Pettersen wrote: >On Mon, 2003-09-22 at 07:03, Nicholas Holley wrote: > > >>I'm running an up to date version of Freebsd 5.1, and I'm having >>problems with my soundcard. I have an Asus a7n8x deluxe. The kernel has >>pcm support compiled in and the sound card works mostly, but >>occasionally the soundcard will not work properly. >> >>For example: >> >> - xmms will be playing fine for an hour and then stop with the >> generic error about the soundcard being unavailable >> - I'll pause mplayer and unpause it only to have it crash due to the >> soundcard being unavailable >> - snes9x will stop playing the sound after a short amount of >> playtime >> >>Most of the time, I see an error along the lines of an "illegal error". >>With mplayer and xmms, usually a couple of tries and the sound will work >>again. "fstat | grep dsp" will never output anything when the sound >>isn't working so I don't think anything else is blocking the soundcard >>plus I have 4 virtual channels set up so that shouldn't be possible anyway. >> >>The problem is hard to cause or predict so I can't really provide more >>specific situations, but I'm hoping that this has happened to someone >>else before. >> >> > >I think this has something to do with malloc(9) returning NULL. (with >M_NOWAIT flag) Therefore dsp operations which requires memory allocation >or realloc will fail if there is not enough memory free to immediately >fullfill the alloc requests. The driver will then return ENOMEM. > >I've seen debug messages here indicating a return value of 12 (ENOMEM) >from, I think it was some feeder init functions, but can't recall and >couldn't find it in the logs anymore, sorry. > > Is there a diagnostic path I can take to try to find out more or should I just plug in my SoundBlaster? Also is this I should approach the driver developer about? Thanks, Nick