From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 13 14:16:35 2005 Return-Path: X-Original-To: freebsd-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 D4D4816A41C for ; Wed, 13 Jul 2005 14:16:35 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (duke.voidnetwork.com [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CAE743D55 for ; Wed, 13 Jul 2005 14:16:35 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 011226CCC0; Wed, 13 Jul 2005 22:22:19 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (duke.voidnetwork.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 51927-06; Wed, 13 Jul 2005 22:22:17 +0800 (MYT) Received: from kasumi.MyBSD.org.my (unknown [60.48.109.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 3AF0F6CC3D; Wed, 13 Jul 2005 22:22:16 +0800 (MYT) Date: Wed, 13 Jul 2005 22:16:51 +0800 From: Ariff Abdullah To: Alexander Leidinger Message-Id: <20050713221651.10c6ca19.skywizard@MyBSD.org.my> In-Reply-To: <20050713142157.99y2jio3dw0sc404@netchild.homeip.net> References: <20050707064603.6c295451.skywizard@MyBSD.org.my> <20050712204404.GA3835@trimind.de> <20050713061347.61f719c8.skywizard@MyBSD.org.my> <20050713142157.99y2jio3dw0sc404@netchild.homeip.net> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-antivirus-mail-gateway at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org, mat@cnd.mcgill.ca Subject: Re: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) 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: Wed, 13 Jul 2005 14:16:36 -0000 On Wed, 13 Jul 2005 14:21:57 +0200 Alexander Leidinger wrote: > Ariff Abdullah wrote: > > > More good news is, I've already added sysctl controller to tune > > vchan rate on the fly, something like sysctl > > hw.snd.pcm0.vchanrate=xxx. Stay tuned. > > While a sysctl is an easy solution, I don't think we should go this > route. A sysctl is only settable by root, but such device specific > sound tuning (or more abstract: user changeable parts) should be > made user configurable, e.g. with a .ctl device in /dev and an ioctl > interface (or maybe an extended ioctl interface for /dev/dsp*). A > sndctl application (or the mixer application in case of switching to > spdif output) can then change it without the need for superuser > privileges. > I do agree with you, in fact, I have few ideas in mind to implement something like user personal configs (yuck!, not my preferences). I think we should go with sndctl, at the cost of adding few more ioctls and perhaps incompatibilities. Talking about incompatibilities, first, our mixer infrastructure need to be revamped. It's just too old, too crude to handle modern soundcards. Pretty hard to tame it, really, yet possible. Currently all these sysctls and knobs are just to aid debugging, something for developers to tinker with. I believe this will be changed in near future. Thanks for that suggestion. > In case the user should be able to modify parts where he may cause a > DoS (e.g. because a setting results in allocating memory depending > on the value of the setting), a sysctl to limit the range of values > makes sense (additionally to sanity checking of the values in the > kernel). > > Bye, > Alexander. > -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)