From owner-freebsd-multimedia Fri Jan 2 12:00:10 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA29706 for multimedia-outgoing; Fri, 2 Jan 1998 12:00:10 -0800 (PST) (envelope-from owner-freebsd-multimedia) Received: from rah.star-gate.com ([209.133.7.178]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA29696 for ; Fri, 2 Jan 1998 12:00:04 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id LAA04595; Fri, 2 Jan 1998 11:59:44 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199801021959.LAA04595@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: Wolfram Blase cc: multimedia@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 02 Jan 1998 11:59:44 -0800 From: Amancio Hasty Sender: owner-freebsd-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Part 2. Amancio ------- Forwarded Message Return-Path: fj@schizo.dk.tfs.com Received: from mailhub (tfs.com [140.145.250.1]) by rah.star-gate.com (8.8.8/8.8.5) with SMTP id NAA25942 for ; Fri, 28 Nov 1997 13:37:33 -0800 (PST) Received: from schizo.dk.tfs.com by mailhub (SMI-8.6/SMI-SVR4) id NAA10605; Fri, 28 Nov 1997 13:30:44 -0800 Received: (from fj@localhost) by schizo.dk.tfs.com (8.8.7/8.7.3) id WAA15123 for hasty@rah.star-gate.com; Fri, 28 Nov 1997 22:36:54 +0100 (MET) From: Flemming Jacobsen Message-Id: <199711282136.WAA15123@schizo.dk.tfs.com> Subject: bktr radio support To: hasty@rah.star-gate.com (Amancio Hasty) Date: Fri, 28 Nov 1997 22:36:54 +0100 (MET) X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Amancio, Got the radio part working. Very few problems (biggest of them was to remember/rediscover how my (unused for 5 years) HP48 did linear regression). Anyway, looking at the code I kindof decided that adding a special radio state would be complicateing things much more than they needed to be. Instead I implemented that iff the parameter to TVTUNER_SETFREQ was greater than 20000, then it was the radio "frequency"+20000. Once this was in place I only had to add a fourth tuner->bandAddrs and extend tuner->pllControl to an array of 4 (two would be enough, but this way the index into bandAddrs and pllControl is allways the same). Result: In order to tune the radio, open the tuner device and do: f=WantedFrequency*20-407 + 20000; ioctl(radio,TVTUNER_SETFREQ,&f); What's your perspective on this ? Cheers Flemming - -- Flemming Jacobsen It'll probably say something like "Does not TRW Financial Systems, Inc. compute" or "Inoperative parameters". That's Email: fj@tfs.com what it says when it doesn't know and doesn't Phone: +45 4330 4050 want to admit it. -- Terry Pratchett: Wings ------- End of Forwarded Message