From owner-freebsd-multimedia Sat Mar 22 22:09:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA25074 for multimedia-outgoing; Sat, 22 Mar 1997 22:09:08 -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 WAA25067 for ; Sat, 22 Mar 1997 22:09:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by Ilsa.StevesCafe.com (8.7.5/8.6.12) with SMTP id XAA18434; Sat, 22 Mar 1997 23:08:50 -0700 (MST) Message-Id: <199703230608.XAA18434@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: Amancio Hasty cc: Randall Hopper , "Louis A. Mamakos" , multimedia@freebsd.org Subject: Re: First Cut at separating tuner and capture devices In-reply-to: Your message of "Sat, 22 Mar 1997 18:48:11 PST." <199703230248.SAA01428@rah.star-gate.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 22 Mar 1997 23:08:50 -0700 Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I've done the merge of Amancio's minor-mode model of the bt848 driver, added the changes we've discussed the last several hours, and added my most recent extensions. It is working with xtvremote and dtv. It does NOT work with fxtv yet, but that should be trivial. This model now separates the "tuner control" items into a minor device: Create a video device: mknod bktr0 c 79 0 Create a tuner device: mknod tuner0 c 79 16 minor device layout: xxxxxxxx xxxT UUUU UUUU: the card (ie UNIT) identifier, 0 thru 15 T == 0: video device T == 1: tuner device Access your tuner ioctl thru your tuner device handle and anything which controls the video capture process thru the video device handle. Certain ioctl()s such as video source are available thru both devices. I *think* I have preserved compatibility with olded meteor-centric clients via a "common_ioctl()" interface. We get the protection we wanted: you can only open 1 video device, but you can open multiple tuner devices. (there are probably a few bugs lurking here!) Lets get some feedback coming in so Louie can get started on his phase... You can grab it here: http://www.freebsd.org/~fsmp/HomeAuto/files/bt848.970322.tar.gz -- Steve Passe | powered by smp@csn.net | Symmetric MultiProcessor FreeBSD