From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 13 12:22:11 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 1811C16A41F for ; Wed, 13 Jul 2005 12:22:11 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66D5843D45 for ; Wed, 13 Jul 2005 12:22:09 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd17.aul.t-online.de by mailout03.sul.t-online.com with smtp id 1DsgFW-0000UQ-04; Wed, 13 Jul 2005 14:22:02 +0200 Received: from Andro-Beta.Leidinger.net (VgwhREZr8e8d7BAAKHqCinstZsdTjz18Ah-WS2w8wrXUToAR9SIdZJ@[84.165.215.47]) by fwd17.sul.t-online.de with esmtp id 1DsgFS-2F8TGy0; Wed, 13 Jul 2005 14:21:58 +0200 Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j6DCLvJ9003055; Wed, 13 Jul 2005 14:21:57 +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 ; Wed, 13 Jul 2005 14:21:57 +0200 Message-ID: <20050713142157.99y2jio3dw0sc404@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 13 Jul 2005 14:21:57 +0200 From: Alexander Leidinger To: Ariff Abdullah References: <20050707064603.6c295451.skywizard@MyBSD.org.my> <20050712204404.GA3835@trimind.de> <20050713061347.61f719c8.skywizard@MyBSD.org.my> In-Reply-To: <20050713061347.61f719c8.skywizard@MyBSD.org.my> 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-ID: VgwhREZr8e8d7BAAKHqCinstZsdTjz18Ah-WS2w8wrXUToAR9SIdZJ@t-dialin.net X-TOI-MSGID: d9a11475-83ed-4bd0-92c6-85abdfd533ab 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 12:22:11 -0000 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. 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. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Painting, n.: The art of protecting flat surfaces from the weather, and exposing them to the critic. -- Ambrose Bierce