From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 21 17:09:08 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F63C16A4CE for ; Sun, 21 Mar 2004 17:09:08 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id D233143D2F for ; Sun, 21 Mar 2004 17:09:07 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <2004032201090501300e4m00e>; Mon, 22 Mar 2004 01:09:06 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA27195; Sun, 21 Mar 2004 17:09:19 -0800 (PST) Date: Sun, 21 Mar 2004 17:09:18 -0800 (PST) From: Julian Elischer To: John Wehle In-Reply-To: <200403212331.i2LNVRL14391@jwlab.FEITH.COM> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: multimedia@freebsd.org cc: u431839553@navab.net Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 01:09:08 -0000 If I was building a little TV recorder, and wanted to use this driver, is thre a way of telling which Hauppauge cards I can and can not buy? Looking on their web page everything seems to be called "WinTV something" and model numbers seem to not be used very much... On Sun, 21 Mar 2004, John Wehle wrote: > > cxm0: mem 0xc8000000-0xcbffffff irq 21 at device 11.0 on pci3 > > cxm_iic0: on cxm0 > > iicbb0: on cxm_iic0 > > iicbus0: on iicbb0 master-only > > cxm0: LG Innotek TPI8PSB11D tuner > > cxm0: SAA7115 rev 1 video decoder > > cxm0: MSP3415G-B8 audio decoder > > cxm0: IR Remote > > cxm0: encoder firmware version 0x2040011 > > > > No decoder firmware version. > > The iTVC16 which is used on the PVR-250 version 2 doesn't implement > a decoder which is why the decoder firmware version isn't displayed. > > > When I try cat /dev/cxm0 > file.mpg I get > > "cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video > > decoder isn't locked". > > The driver defaults to channel 4 which is mapped to 62.25 MHz by the > BG channel map used by the driver. Is something broadcast on that > frequency in your area and do you have a good antenna or cable > connection attached to the coax connector on the card? > > Enclosed is a little utility for changing channels and selecting the > input. > > -- John > ----------------8<----------------------8<---------------------------- > #include > #include > #include > #include > #include > #include > #include > > /****************************************************************************/ > /* setchannel.c - Set the channel of the bktr tuner card. */ > /* */ > /* COMPILE WITH: cc -o setchannel setchannel.c */ > /****************************************************************************/ > > static void > usage() > { > printf("Usage: setchannel <-a {on|off}|-c|-s|-t|-t channel|channel>\n" > " -a Enable / disable AFC.\n" > " -c Select composite input.\n" > " -s Select svideo input.\n" > " -t Select tuner.\n"); > } > > int main( int argc, char *argv[] ) > { > int afc; > int c; > int status; > int tfd; > unsigned int channel; > unsigned long device; > > afc = -1; > channel = 0; > device = 0; > status = 0; > > while ((c = getopt (argc, argv, "a:cst")) != -1) > switch (c) { > case 'a': > if (strcasecmp (optarg, "on") == 0) > afc = 1; > else if (strcasecmp (optarg, "off") == 0) > afc = 0; > else { > usage (); > exit (1); > } > break; > > case 'c': > device = METEOR_INPUT_DEV2; > break; > > case 's': > device = METEOR_INPUT_DEV_SVIDEO; > break; > > case 't': > device = METEOR_INPUT_DEV1; > break; > > default: > usage (); > exit (1); > } > > if ( optind < argc) > channel = atoi( argv[optind] ); > > if (afc == -1 && ! channel && ! device) { > usage (); > exit (1); > } > > tfd = open( "/dev/cxm0", O_RDONLY ); > if ( tfd < 0 ) { > perror( "open() of /dev/cxm0 failed." ); > exit(1); > } > > if (afc != -1) > if ( ioctl( tfd, TVTUNER_SETAFC, &afc ) < 0 ) { > perror( "ioctl( tfd, TVTUNER_SETAFC ) failed." ); > status = 1; > } > > if (device) > if ( ioctl( tfd, METEORSINPUT, &device ) < 0 ) { > perror( "ioctl( tfd, METEORSINPUT ) failed." ); > status = 1; > } > > if (channel) > if ( ioctl( tfd, TVTUNER_SETCHNL, &channel ) < 0 ) { > perror( "ioctl( tfd, TVTUNER_SETCHNL ) failed." ); > status = 1; > } > > close ( tfd ); > exit ( status ); > } > ------------------------------------------------------------------------- > | Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com | > | John Wehle | Fax: 1-215-540-5495 | | > ------------------------------------------------------------------------- > >