From owner-freebsd-multimedia@FreeBSD.ORG Mon Aug 15 12:01:55 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 4293916A420; Mon, 15 Aug 2005 12:01:55 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1A5543D69; Mon, 15 Aug 2005 12:01:45 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F308.dip.t-dialin.net [84.165.243.8]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j7FBslm2066134; Mon, 15 Aug 2005 13:55:12 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j7FBxiwE081437; Mon, 15 Aug 2005 13:59:45 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.31 ([141.113.101.31]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Mon, 15 Aug 2005 13:59:44 +0200 Message-ID: <20050815135944.3my8gg7b6swcc4cc@netchild.homeip.net> X-Priority: 3 (Normal) Date: Mon, 15 Aug 2005 13:59:44 +0200 From: Alexander Leidinger To: "A. Wik" References: <20050806084910.N13128@dynamite.narpes.com> <200508081346.16811.jhb@FreeBSD.org> <20050813150300.5d4d11f2@Magellan.Leidinger.net> <42FE5ED1.5070209@elischer.org> <20050814113838.762e6330@Magellan.Leidinger.net> <42FFA268.5060400@elischer.org> <20050815025007.T82687@dynamite.narpes.com> In-Reply-To: <20050815025007.T82687@dynamite.narpes.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: multimedia@freebsd.org, Julian Elischer , John Baldwin 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, 15 Aug 2005 12:01:55 -0000 "A. Wik" wrote: >> > What are the arguments to integrate it into mixer(8)? >> >> one stop shopping? >> no new program to learn? Yes, but we also have the route and ifconfig programs (and e.g. ipfw for dummynet). We have them to seperate logical domains. > I looked at mixer(8) while exploring the the sound driver > architecture, to determine how to add the 3DSE ioctl(). > However, I could not find an easy way to fit it into > either the existing mixer driver, or the userland mixer > control program. I suppose that it might have been > possible by using typecasts and having the 3DSE feature > masquerade as a mixer input/output line, but doing it > the way I did seemed like a better choice - perhaps the > main advantage being compatibility, allowing applications > such as XMMS to use the same interface for Linux and > FreeBSD. > > The standalone utility to control the feature is > a quick but functional test program. I see one logical > reason for integrating its functionality into mixer(8): > the fact that the ioctls are done on the /dev/mixer > device (and at the hardware level, by manipulation of > Sound Blaster "mixer" registers). While this stereo "enhancement" is done by adding some amount (e.g. half of it) of one channel to the other channel, the feature itself is a digital signal effect (maybe some soundcards add a delay before they sum up the channels). Changing from analog to digital signal delivery at the output jacks is not a mixer property too. For the vchans we could argue about it... but not for the slave channels Ariff is working on. So I think we're in the need of another program in any case and we should take the opportunity to just do it right in the first place instead of clutching this 3d feature to mixer and move it later to a more appropriate place. Any other arguments to "hack" mixer(8)? Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Mathematicians take it to the limit.