From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BjhlC-0004eS-1K for qemu-devel@nongnu.org; Sun, 11 Jul 2004 13:05:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BjhlA-0004eG-01 for qemu-devel@nongnu.org; Sun, 11 Jul 2004 13:05:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bjhl9-0004eD-Mf for qemu-devel@nongnu.org; Sun, 11 Jul 2004 13:05:03 -0400 Received: from [151.189.21.45] (helo=mail-in-05.arcor-online.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BjhiR-0007Hv-2L for qemu-devel@nongnu.org; Sun, 11 Jul 2004 13:02:15 -0400 Received: from hatatitla.NotaMusica.com (dsl-082-082-147-185.arcor-ip.net [82.82.147.185]) by mail-in-05.arcor-online.net (Postfix) with ESMTP id 45FB6AF7461 for ; Sun, 11 Jul 2004 19:02:12 +0200 (CEST) Received: from hatatitla.NotaMusica.com (jmartin@localhost [127.0.0.1]) by hatatitla.NotaMusica.com (8.12.3/8.12.3/Debian-6.6) with ESMTP id i6BH2ASi006953 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 11 Jul 2004 19:02:11 +0200 Received: from localhost (jmartin@localhost) by hatatitla.NotaMusica.com (8.12.3/8.12.3/Debian-6.6) with ESMTP id i6BH2ALm006948 for ; Sun, 11 Jul 2004 19:02:10 +0200 Date: Sun, 11 Jul 2004 19:02:10 +0200 (CEST) From: Johannes Martin Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [Qemu-devel] OS/2 Warp sound issues and patch (?) 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, I just compiled qemu from cvs on a Debian Linux system. Then I tried to install OS/2 Warp 4. The install worked fine except that I got a segmenation fault during network install, so my final OS/2 installation does not have any network drivers installed, but that's another issue... qemu crashed pretty predictably whenever I tried to open a folder and for some other system events that caused sound output (I use qemu with -enable-audio). I got an error message saying: oss: write audio system error: Unknown error 572 (the error number would change) I found the place in oss.c that causes the abort and tried to fix it. The patch below works fine for me: sound continues to work and I no longer get any aborts (just the occasional error message on the console). Another issue: when qemu aborts, I sometimes lose my mouse pointer. Restarting qemu fixes that problem. Maybe qemu should clean up a little bit before aborting, such as resetting mouse and terminal. Great work! I'm impressed. Johannes *** oss.c Sun Jul 11 18:02:19 2004 --- oss.c.~1.5.~ Mon Jul 5 23:25:11 2004 *************** *** 410,420 **** return; } else { ! int _errno = errno; ! fprintf (stderr, "oss: write audio\n"); ! fprintf (stderr, "system error: %s\n", strerror (_errno)); ! // ERRFail ("write audio"); ! written = play; } } --- 410,416 ---- return; } else { ! ERRFail ("write audio"); } }