From owner-freebsd-multimedia Wed Mar 26 13:46:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA00120 for multimedia-outgoing; Wed, 26 Mar 1997 13:46:04 -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 NAA00104 for ; Wed, 26 Mar 1997 13:45:58 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by Ilsa.StevesCafe.com (8.7.5/8.6.12) with SMTP id OAA14891; Wed, 26 Mar 1997 14:45:18 -0700 (MST) Message-Id: <199703262145.OAA14891@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: Amancio Hasty , multimedia@FreeBSD.ORG Subject: Re: newest bt848 driver In-reply-to: Your message of "Wed, 26 Mar 1997 17:49:03 GMT." <26814.199703261749@pitcairn.cogsci.ed.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 26 Mar 1997 14:45:18 -0700 Sender: owner-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, I have just put a new bt848 driver on the web page. This version fixes several more bugs, including yesterdays Japanese freq table. It has new expanded TUNER table structs to allow adding info about NTSC/PAL/SECAM etc. it attempts to detect the hauppauge/Temic-SECAM card on boot. it has a tuner entry for the Temic-SECAM tuner. http://www.freebsd.org/~fsmp/HomeAuto/files/bt848.970326.tar.gz --- My edit session of the web page hung mid edit so the page is visually hosed right now, I was attempting to put in a short program to invoke a new ioctl(): BT848_SIGNATURE. this will search for all the i2c devices on the card. hopefully this will allow use to determine which is which during boot. If you can, update to this latest version and run this test. Note that it takes NO args, just type "sign". report the test's output results along with: card make and model tuner type ie, the brand name and model on the big tin can. card input format, ie NTSC, PAL, SECAM, etc. country being used in. ----------------------------------------- cut --------------------------------- #include #include #include #include #include #include #include #define DEVICE "/dev/tuner0" #define SIZE 256 main(int ac, char **av) { int x; char s[ SIZE ]; int tuner; struct eeProm signature; u_char* p; int o; int c; signature.offset = 0x01; signature.count = 128; if ((tuner = open( DEVICE, O_RDONLY)) < 0 ) exit( 1 ); if ( ioctl(tuner, BT848_SIGNATURE, &signature) < 0 ) exit( 1 ); printf( "\nsignature contents, 0x%02x thru 0x%02x:\n", signature.offset, (2 * ((signature.offset - 1) + signature.count)) - 1 ); for ( p = &signature.bytes[ 0 ], x = 0; x < 16; ++x ) { if ( !(x & 0xf) ) printf( "\n" ); printf( " %02x", p[ x ] ); } printf( "\n" ); printf( "\n\ni2c device found @ \n" ); for ( p = &signature.bytes[ 0 ], x = 0; x < 128; ++x ) { if ( p[ x / 8 ] & (1 << (x % 8)) ) { printf( " 0x%02x\n", x * 2 ); } } printf( "\n" ); exit( 0 ); } ----------------------------------------- cut --------------------------------- -- Steve Passe | powered by smp@csn.net | Symmetric MultiProcessor FreeBSD