From owner-freebsd-multimedia@FreeBSD.ORG Mon Aug 8 17:46:49 2005 Return-Path: X-Original-To: multimedia@FreeBSD.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28E7216A549 for ; Mon, 8 Aug 2005 17:46:49 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2D3843E2D for ; Mon, 8 Aug 2005 17:46:14 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.40.201] (Not Verified[65.202.103.25]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Mon, 08 Aug 2005 14:00:28 -0400 From: John Baldwin To: "A. Wik" Date: Mon, 8 Aug 2005 13:46:16 -0400 User-Agent: KMail/1.8 References: <20050806084910.N13128@dynamite.narpes.com> In-Reply-To: <20050806084910.N13128@dynamite.narpes.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508081346.16811.jhb@FreeBSD.org> Cc: multimedia@FreeBSD.org Subject: Re: SB 3DSE ioctl() patch X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2005 17:46:49 -0000 On Saturday 06 August 2005 05:50 am, A. Wik wrote: > (This was originally addressed to Cameron Grant, the author > of the files I modified. Unfortunately, my message bounced, > and shortly thereafter, I learned that he passed away earlier > this year [1]. I hope this forum is an appropriate alternative.) > > [1] http://lists.nycbug.org/pipermail/talk/2005-March/005014.html > > **** > > Hello, > > I just installed a Soundblaster 16 (DSP v4.16) in my FreeBSD > machine, and found no way to enable the 3D stereo enhancement > feature that the Linux, DOS and Win9x drivers support. So I > looked at the Linux driver sources and decided to add a > compatible mixer ioctl() to the FreeBSD driver. That turned > out to be a lot more complicated than expected, because there > was no existing interface for this kind of hardware-specific > ioctls. > > After extensive reverse-engineering of the FreeBSD driver > model (studying the UART and TTY drivers was particularly > helpful), and adding a method to the mixer interface, I > managed to implement the feature, at least to the extent > that it works for me. > > Perhaps you could take a look at the patch to verify that > it doesn't break anything, and consider adding it to the > mainstream kernel? The patch and a utility for testing > it is available from my FTP site: > > ftp://vax.narpes.com/users/aw/freebsd-5.3-aw-3dse.diff > ftp://vax.narpes.com/users/aw/s3dioctl.c > > Regards, > A. Wik multimedia@ (cc'd) is probably a better list for discussing a patch to the sound drivers. Hopefully someone here can provide feedback and help you get this into the tree. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org