From owner-freebsd-multimedia@FreeBSD.ORG Sun Aug 14 09:40:34 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 9F6DE16A41F; Sun, 14 Aug 2005 09:40:34 +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 05D5A43D45; Sun, 14 Aug 2005 09:40:33 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5DA5F.dip.t-dialin.net [84.165.218.95]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j7E9XsvP056115; Sun, 14 Aug 2005 11:34:05 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j7E9cc0S058128; Sun, 14 Aug 2005 11:38:39 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 14 Aug 2005 11:38:38 +0200 From: Alexander Leidinger To: Julian Elischer Message-ID: <20050814113838.762e6330@Magellan.Leidinger.net> In-Reply-To: <42FE5ED1.5070209@elischer.org> References: <20050806084910.N13128@dynamite.narpes.com> <200508081346.16811.jhb@FreeBSD.org> <20050813150300.5d4d11f2@Magellan.Leidinger.net> <42FE5ED1.5070209@elischer.org> X-Mailer: Sylpheed-Claws 1.9.13 (GTK+ 2.6.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: "A. Wik" , multimedia@freebsd.org, 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: Sun, 14 Aug 2005 09:40:34 -0000 On Sat, 13 Aug 2005 13:57:53 -0700 Julian Elischer wrote: > Alexander Leidinger wrote: > > > > > I haven't looked at the patch, but from looking at the names of the > > files I assume you've a program which kust is responsible for > > activating the 3D stereo enhancement. While this enables this > > functionality (which is good), there should be a generic "sndctl" > > program which allows to manipulates multiple settings. So the sndctl > > program could be called in this case for exmaple as "sndctl 3dse > > on" (or something like this). Maybe you can add some rough command line > > parsing to your program which reacts on a keyword like above? Ideally > > it should support the "-f" option like mixer(8) does. > > > > I want to work on something like this for the s/pdif <-> analog > > features (ATM only available as sysctl's in -current), but I don't know > > when I get time to do it. Your ctl program could then be enhanced to > > also handle this (and maybe other things like querying for such > > capabilities and print them together with the current state of > > operation). > > Isn't "mixer" the equivalent of "sndctl"? > Just add the functionality to mixer.. ---snip--- % man -k mixer mixer(8) - set/display soundcard mixer values ---snip--- For me the mixer is a device which controls the volume level of various streams and is responsible how to mix those streams into each other. The mixer(8) program is a program which allows to manipulate the mixer (let's compare it with network routing and bandwith management). The sndctrl program would be responsible to query and change various properties/capabilities of the soundsystem (let's compare it with configuring a network interface with ifconfig) which don't have to be related to the mixer, e.g. Ariff is working on "slave-channels", which decouple the hardware buffer from the userland buffer. ATM slave-channels are controled by a sysctl like the vchans. This could be changed to be controled by sndctl. I don't think this falls into the responsibility of mixer(8). What are the arguments to integrate it into mixer(8)? Bye, Alexander. -- The best things in life are free, but the expensive ones are still worth a look. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7