Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BYJqF-0008NN-CT for qemu-devel@nongnu.org; Thu, 10 Jun 2004 03:19:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BYJqB-0008MD-Ho for qemu-devel@nongnu.org; Thu, 10 Jun 2004 03:19:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYJqB-0008M2-CZ for qemu-devel@nongnu.org; Thu, 10 Jun 2004 03:19:11 -0400 Received: from [203.63.55.34] (helo=wallace.eclinic.com.au) by monty-python.gnu.org with smtp (Exim 4.34) id 1BYJpR-00073K-Mw for qemu-devel@nongnu.org; Thu, 10 Jun 2004 03:18:26 -0400 From: Leigh Dyer Content-Type: text/plain Message-Id: <1086851873.16982.8.camel@shawn.local> Mime-Version: 1.0 Date: Thu, 10 Jun 2004 17:17:53 +1000 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] OSS audio debugging Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, I've been playing with the sb16 emulation using a Win2k guest. The Add New Hardware wizard's hardware probe picked it up and installed it without any problems, but playing audio quite often resulted in a very abrupt end to the emulation. I've tracked the problem down to the AUD_run() function in oss.c. When writing to the card, it calls SNDCTL_DSP_GETOSPACE, which is apparently meant to return the amount of data that can be written to the card without blocking. However, for some reason, occasionally the value returned in abinfo.bytes is negative. This negative value makes it through to the write() call, which then fails with an unknown error, hitting the: ERRFail ("write audio"); line. I really don't know much about OSS, so I'm not sure how this should be handled. Does anyone else know what this could mean? For reference, the card is an ess1371, running ALSA drivers in OSS emulation mode. Thanks Leigh