From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HLW4P-0007Xh-0t for qemu-devel@nongnu.org; Sun, 25 Feb 2007 21:58:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HLW4M-0007WK-Ad for qemu-devel@nongnu.org; Sun, 25 Feb 2007 21:58:31 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLW4M-0007W3-0w for qemu-devel@nongnu.org; Sun, 25 Feb 2007 21:58:30 -0500 Received: from centrmmtao04.cox.net ([70.168.83.80]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HLW4L-0001j0-62 for qemu-devel@nongnu.org; Sun, 25 Feb 2007 21:58:29 -0500 Received: from eastrmimpo02.cox.net ([68.1.16.120]) by centrmmtao04.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20070226025827.GEMU19407.centrmmtao04.cox.net@eastrmimpo02.cox.net> for ; Sun, 25 Feb 2007 21:58:27 -0500 Message-ID: <26530570.1172458707088.JavaMail.root@eastrmwml08.mgt.cox.net> Date: Sun, 25 Feb 2007 21:58:27 -0500 From: Ben Taylor MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_15393_28021835.1172458707058" Subject: [Qemu-devel] Patch: allow Solaris to use OSS (OpenSound) Reply-To: sol10x86@cox.net, 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 ------=_Part_15393_28021835.1172458707058 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit As I seem to have hit a wall with the ES1370 driver in qemu not working on Solaris, I have modified configure to allow Solaris to use OpenSoundSystems audio. Is there any interest in having a default audio setting for SDL so that you won't have to always put QEMU_SDL_AUDIO=oss before you start qemu? Ben ------=_Part_15393_28021835.1172458707058 Content-Type: text/x-patch; name=qemu-solaris-oss.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=qemu-solaris-oss.patch diff -ruN qemu-ORIG/configure qemu/configure --- qemu-ORIG/configure 2007-02-15 17:58:18.000000000 -0500 +++ qemu/configure 2007-02-25 20:26:11.270139000 -0500 @@ -221,6 +221,8 @@ ;; --fmod-inc=*) fmod_inc="$optarg" ;; + --enable-oss) oss="yes" + ;; --enable-mingw32) mingw32="yes" ; cross_prefix="i386-mingw32-" ; linux_user="no" ;; --disable-slirp) slirp="no" @@ -289,6 +291,7 @@ echo " --enable-coreaudio enable Coreaudio audio driver" echo " --enable-alsa enable ALSA audio driver" echo " --enable-fmod enable FMOD audio driver" +echo " --enable-oss enable OSS audio driver" echo " --enabled-dsound enable DirectSound audio driver" echo " --enable-system enable all system emulation targets" echo " --disable-system disable all system emulation targets" @@ -619,6 +622,16 @@ fmod_support="" fi echo "FMOD support $fmod $fmod_support" +if test "$oss" = "yes"; then + if test "$solaris" = "yes" && ! test -f /usr/include/sys/soundcard.h ; then + echo + echo "Error: /usr/include/sys/soundcard.h not found" + echo "Error: You must install OSS to use the oss module" + echo + exit 1 + fi +fi +echo "OSS support $oss" echo "kqemu support $kqemu" echo "Documentation $build_docs" [ ! -z "$uname_release" ] && \ ------=_Part_15393_28021835.1172458707058--