Lines Matching refs:TUNER
8 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
12 * bktr_tuner : This deals with controlling the tuner fitted to TV cards.
136 /* The control value for the ALPS TSCH5 Tuner */
140 /* The control value for the ALPS TSBH1 Tuner */
144 static const struct TUNER tuners[] = {
149 { 0x00, /* control byte for Tuner PLL */
159 { TSA552x_SCONTROL, /* control byte for Tuner PLL */
169 { TSA552x_SCONTROL, /* control byte for Tuner PLL */
179 { TSA552x_SCONTROL, /* control byte for Tuner PLL */
189 { TSA552x_SCONTROL, /* control byte for Tuner PLL */
199 { TSA552x_SCONTROL, /* control byte for Tuner PLL */
209 { TSA552x_SCONTROL, /* control byte for Tuner PLL */
219 { TSA552x_SCONTROL, /* control byte for Tuner PLL */
229 { TSA552x_SCONTROL, /* control byte for Tuner PLL */
239 { TSA552x_FCONTROL, /* control byte for Tuner PLL */
249 { TSA552x_FCONTROL, /* control byte for Tuner PLL */
259 { TSA552x_FCONTROL, /* control byte for Tuner PLL */
269 { TSCH5_FCONTROL, /* control byte for Tuner PLL */
279 { TSBH1_FCONTROL, /* control byte for Tuner PLL */
677 #define TBL_CHNL freqTable[bktr->tuner.chnlset].ptr[x]
678 #define TBL_BASE_FREQ freqTable[bktr->tuner.chnlset].ptr[x + 1]
679 #define TBL_OFFSET freqTable[bktr->tuner.chnlset].ptr[x + 2]
706 #define TBL_IF freqTable[bktr->tuner.chnlset].ptr[1]
709 /* Initialise the tuner structures in the bktr_softc */
710 /* This is needed as the tuner details are no longer globally declared */
714 bktr->card.tuner = &tuners[tuner_type];
716 bktr->card.tuner = NULL;
721 * Tuner Notes:
722 * Programming the tuner properly is quite complicated.
723 * Here are some notes, based on a FM1246 data sheet for a PAL-I tuner.
724 * The tuner (front end) covers 45.75 MHz - 855.25 MHz and an FM band of
736 * The tuner also works in Bands. Philips bands are
743 * Now we need to set the PLL on the tuner to the required frequency.
772 * set the frequency of the tuner
781 const struct TUNER* tuner;
791 tuner = bktr->card.tuner;
792 if (tuner == NULL)
799 if (frequency < (tuner->bandLimits[0] * FREQFACTOR))
801 else if (frequency < (tuner->bandLimits[1] * FREQFACTOR))
807 if (bktr->tuner.afc)
823 control = tuner->pllControl[band_select];
824 band = tuner->bandAddrs[band_select];
829 if (frequency > bktr->tuner.frequency) {
839 if (bktr->tuner.afc == TRUE) {
862 bktr->tuner.frequency = frequency;
882 control = tuner->pllControl[band_select];
883 band = tuner->bandAddrs[band_select];
888 band |= bktr->tuner.radio_mode; /* tuner.radio_mode is set in
895 bktr->tuner.frequency = (N * 5) - 1070;
978 * Get the Tuner status and signal strength
985 * set the channel of the tuner
992 /* calculate the frequency according to tuner type */
1001 return((bktr->tuner.channel = channel));