From owner-freebsd-multimedia Sat Mar 22 10:54:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA24087 for multimedia-outgoing; Sat, 22 Mar 1997 10:54:10 -0800 (PST) Received: from Ilsa.StevesCafe.com (sc-gw.StevesCafe.com [205.168.119.191]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA24071 for ; Sat, 22 Mar 1997 10:54:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by Ilsa.StevesCafe.com (8.7.5/8.6.12) with SMTP id LAA10565; Sat, 22 Mar 1997 11:53:47 -0700 (MST) Message-Id: <199703221853.LAA10565@Ilsa.StevesCafe.com> X-Authentication-Warning: Ilsa.StevesCafe.com: Host localhost [127.0.0.1] didn't use HELO protocol X-Mailer: exmh version 1.6.5 12/11/95 From: Steve Passe To: Richard Tobin cc: multimedia@freebsd.org Subject: Re: Changes for Audio control on the bt848 code In-reply-to: Your message of "Sat, 22 Mar 1997 17:58:06 GMT." <24447.199703221758@pitcairn.cogsci.ed.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 22 Mar 1997 11:53:46 -0700 Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, > > Note that this driver changed the string TUNERTYPE_xxx to CHNLSET_xxx, > > That reminds me, why is the mapping of channels to frequencies done in > the kernel? It seems excessive to have to rebuild the kernel to add > frequencies for other countries. There is an ioctl to directly plug in frequencies if you want, but I don't believe that an app should have to be aware of the math necessary to create the IF frequency for the tuner hardware. The total calculation requires knowledge of the tuner model and/or card setup. it depends on the programmed step size (ie granularity) used by the predivider. it may also vary from PAL to NTSC, I haven't investigated that yet. there is also the issue of advanced features like "channel search". to do this the kernel needs to know all the above fundimental data anyways, so nothing to be saved by forcing the app to do channel math. Remember that an app should be able to work with different types of hardware, there is no guarantee that all future boards of this class will user bt848 chips or temic/philips tuners. -- Steve Passe | powered by smp@csn.net | Symmetric MultiProcessor FreeBSD