Date: Fri, 22 Aug 1997 15:34:32 -0500 (CDT) From: Kyle Mestery <mestery@winternet.com> To: Steve Passe <smp@csn.net> Cc: Amancio Hasty <hasty@rah.star-gate.com>, Kenneth Merry <ken@gt.ed.net>, freebsd-multimedia@FreeBSD.ORG Subject: Re: Problem with my Wincast, fxtv Message-ID: <Pine.GSO.3.96.970822153144.10338A-100000@tundra.winternet.com> In-Reply-To: <199708171819.MAA07175@Ilsa.StevesCafe.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 17 Aug 1997, Steve Passe wrote: > b4 doing that, try turning on AFC (auto freq control) I think fxtv has a menu > item for that, but if not, use ioctl TVTUNER_SETAFC. this will cause the > tuner code to adjust the selected frequency within a +-5 mHz range while > polling the hardware for a "centered" signal. > > --- > if that doesn't help a crude userland auto scan would be something like: > ******************** THE FOLLOWING IS ALL THEORY *********************** > > #define AFC_BITS 0x07 > #define AFC_FREQ_MINUS_125 0x00 > #define AFC_FREQ_MINUS_62 0x01 > #define AFC_FREQ_CENTERED 0x02 > #define AFC_FREQ_PLUS_62 0x03 > #define AFC_FREQ_PLUS_125 0x04 > > #define BOTTOM (unsigned long)(55.25 * 16) > #define TOP (unsigned long)(655.25 * 16) > > int afcon = 1; > unsigned long freq, freq2, status; > int fd; > > fd = open( ... ); > > if ( ioctl( fd, TVTUNER_SETAFC, &afcon ) < 0 ) { > ERROR; > } > > for ( freq = BOTTOM; freq < TOP; freq += (6.0 * 16) ) > { > printf( "\ntrying freq: %f", (double)((double)freq / 16.0) ); > if ( ioctl( fd, TVTUNER_SETFREQ, &freq ) < 0 ) { > ERROR; > } > if ( ioctl( fd, TVTUNER_GETFREQ, &freq2 ) < 0 ) { > ERROR; > } > > if ( ioctl( fd, TVTUNER_GETSTATUS, &status ) < 0 ) { > ERROR; > } > if ( !(status & 0x40) ) { > printf( ", no lock (?)\n" ); > sleep( 1 ); > continue; > } > > /** XXX not sure about the / 16 */ > printf( "\nafc picked freq: %f", (double)((double)freq2 / 16.0) ); > > printf( ", hit return to continue..." ); > gets(); > } > -- > Steve Passe | powered by > smp@csn.net | Symmetric MultiProcessor FreeBSD > > I followed Steve's advice and wrote the above, touching it up. It basically scans through all hte channels like Steve said. Still though, I dont get anything new. I still get channels 2-6, 14-20, and 95-99. I dont get 7-13 and 21-94. Or so I thought. Turns out I get some channels in the range of 60-70, but they are the channels that should be in the range of 7-13, and they only come in marginally well with a lot of fuzz. Does this still sound like a bad tuner, because I would like to return the card if it is a bad card. Thanks all! Kyle Mestery StorageTek's Network Systems Group 7600 Boone Ave. N., Brooklyn Park, MN 55428 mesteka@anubis.network.com, mestery@winternet.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.970822153144.10338A-100000>