From owner-freebsd-stable Fri Jun 22 3:52:35 2001 Delivered-To: freebsd-stable@freebsd.org Received: from green.csi.cam.ac.uk (green.csi.cam.ac.uk [131.111.8.57]) by hub.freebsd.org (Postfix) with ESMTP id F201637B403 for ; Fri, 22 Jun 2001 03:52:27 -0700 (PDT) (envelope-from jmi25@cam.ac.uk) Received: from fennec.chu.cam.ac.uk ([131.111.250.98]) by green.csi.cam.ac.uk with esmtp (Exim 3.22 #1) id 15DOY6-0003pQ-00 for freebsd-stable@freebsd.org; Fri, 22 Jun 2001 11:52:26 +0100 Received: from jmi by fennec.chu.cam.ac.uk with local (Exim 3.22 #2) id 15DOh8-0000Er-00; Fri, 22 Jun 2001 12:01:46 +0100 Date: Fri, 22 Jun 2001 12:01:46 +0100 From: Jonathan Irwin To: Amir Shalem Cc: freebsd-stable@freebsd.org Subject: Re: Quake2 on FreeBSD Message-ID: <20010622120146.B562@cam.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from amir@boom.org.il on Thu, Jun 21, 2001 at 11:34:49PM +0300 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Amir Shalem wrote: > I have tried lately to run quake2 on freebsd 4.3. > I managed to get it running, but I had some problems with the sound: > ------- sound initialization ------- > /dev/dsp: Invalid argument > Could not set /dev/dsp to stereo=2 > > I have tried looking for FAQs about installing quake on freebsd, > I have found http://www.dons.net.au/~darius/quake/ page, it said > quake2/quake needs sound driver capable of supporting mmap()able DMA > buffers, is that the problem ? The newpcm driver does support mmap()able DMA buffers, so this isn't the cause. It has something to do with the order in which the Quake sound code makes it's ioctl() calls to set up the sound card. I spent many hours fiddling with this in Quake I a few weeks ago, and I gave up before I got it working (unfortunately). My solution was to write a new snd_bsd.c, which used conventional write() calls instead, and seems to work fine (I also sorted out the includes to make it portable to Net/OpenBSD [untested]). Ask if you want a copy. The relevant lines from my dmesg (4.3-RELEASE system): sbc0: at port 0x220-0x22f irq 5 drq 1 flags 0x15 on isa0 pcm0: on sbc0 Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message