From owner-freebsd-multimedia Thu Feb 27 19:16:55 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA06698 for multimedia-outgoing; Thu, 27 Feb 1997 19:16:55 -0800 (PST) Received: from clem.systemsix.com (clem.systemsix.com [198.99.86.131]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id TAA06673 for ; Thu, 27 Feb 1997 19:16:19 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by clem.systemsix.com (8.6.12/8.6.12) with SMTP id UAA00380; Thu, 27 Feb 1997 20:13:57 -0700 Message-Id: <199702280313.UAA00380@clem.systemsix.com> X-Authentication-Warning: clem.systemsix.com: Host localhost didn't use HELO protocol X-Mailer: exmh version 1.6.5 12/11/95 From: Steve Passe To: multimedia@freebsd.org cc: Randall Hopper Subject: Re: STB tuner In-reply-to: Your message of "Thu, 27 Feb 1997 19:41:52 MST." <199702280241.TAA00216@clem.systemsix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 27 Feb 1997 20:13:57 -0700 Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, opps, forgot to include chnl.c: ------------------------------------ cut ------------------------------------- #include #include #include #include #include #define TUNER #include main(int ac, char **av) { int x, ch; char s[ 128 ]; int video; if ((video = open("/dev/bktr0", O_RDONLY)) < 0) { fprintf(stderr, "open failed: %s\n", strerror(errno)); goto bybye; } #if 0 x = METEOR_INPUT_DEV1; if (ioctl(video, METEORSINPUT, &x) < 0) { fprintf(stderr, "ioctl failed: %s\n", strerror(errno)); goto bybye; } #endif while ( fgets( s, 100, stdin ) ) { x = atoi( s ); if (ioctl(video, TVTUNER_SETCHNL, &x) < 0) { fprintf(stderr, "ioctl failed: %s\n", strerror(errno)); } } bybye: close(video); exit(0); } ------------------------------------ cut ------------------------------------- -- Steve Passe | powered by smp@csn.net | FreeBSD