From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 21 15:31:37 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 4A72E16A4CE for ; Sun, 21 Mar 2004 15:31:37 -0800 (PST) Received: from feith1.FEITH.COM (feith1.FEITH.COM [192.251.93.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4E8543D1D for ; Sun, 21 Mar 2004 15:31:36 -0800 (PST) (envelope-from john@feith.com) Received: from jwlab.FEITH.COM (jwlab.FEITH.COM [192.251.93.16]) by feith1.FEITH.COM (8.12.10+Sun/8.12.9) with ESMTP id i2LNVTIt006999; Sun, 21 Mar 2004 18:31:29 -0500 (EST) Received: (from john@localhost) by jwlab.FEITH.COM (8.11.7p1+Sun/8.11.7) id i2LNVRL14391; Sun, 21 Mar 2004 18:31:27 -0500 (EST) Date: Sun, 21 Mar 2004 18:31:27 -0500 (EST) From: John Wehle Message-Id: <200403212331.i2LNVRL14391@jwlab.FEITH.COM> To: multimedia@freebsd.org Content-Type: text X-Scanned-By: MIMEDefang 2.39 X-Archived: cashew.FEITH.COM 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: Sun, 21 Mar 2004 23:31:37 -0000 > 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 | | -------------------------------------------------------------------------