Lines Matching refs:frequency
294 * entry 1: IF frequency
304 * int 1: frequency of base channel,
306 * int 2: offset frequency between channels,
728 * IF is the Intermediate Frequency (the offset from the base
733 * Strangely enough, there is an IF (intermediate frequency) for
743 * Now we need to set the PLL on the tuner to the required frequency.
772 * set the frequency of the tuner
773 * If 'type' is TV_FREQUENCY, the frequency is freq MHz*16
774 * If 'type' is FM_RADIO_FREQUENCY, the frequency is freq MHz * 100
779 tv_freq(bktr_ptr_t bktr, int frequency, int type)
797 * select the band based on frequency
799 if (frequency < (tuner->bandLimits[0] * FREQFACTOR))
801 else if (frequency < (tuner->bandLimits[1] * FREQFACTOR))
808 frequency -= 4;
816 * fortunately, frequency is passed in as MHz * 16
817 * and the TBL_IF frequency is also stored in MHz * 16
819 N = frequency + TBL_IF;
829 if (frequency > bktr->tuner.frequency) {
841 oldFrequency = frequency;
844 /* AFC failed, restore requested frequency */
845 N = frequency + TBL_IF;
853 frequency = N - TBL_IF;
855 printf("%s: do_afc: returned freq %d (%d %% %d)\n", bktr_name(bktr), frequency, frequency / 16, frequency % 16);
856 afcDelta = frequency - oldFrequency;
862 bktr->tuner.frequency = frequency;
874 * frequency is passed in as MHz * 100
876 * So, we have N = (frequency/100 + 10.70) /(50/1000)
878 N = (frequency + 1070)/5;
895 bktr->tuner.frequency = (N * 5) - 1070;
911 do_afc(bktr_ptr_t bktr, int addr, int frequency)
917 origFrequency = frequency;
926 printf("%s: Original freq: %d, status: 0x%02x\n", bktr_name(bktr), frequency, status);
941 printf("%s: Centered, freq: %d, status: 0x%02x\n", bktr_name(bktr), frequency, status);
943 return(frequency);
948 printf("%s: Low, freq: %d, status: 0x%02x\n", bktr_name(bktr), frequency, status);
950 --frequency;
956 printf("%s: Hi, freq: %d, status: 0x%02x\n", bktr_name(bktr), frequency, status);
958 ++frequency;
963 (frequency>>8) & 0x7f, frequency & 0xff);
990 int frequency;
992 /* calculate the frequency according to tuner type */
993 if ((frequency = frequency_lookup(bktr, channel)) < 0)
996 /* set the new frequency */
997 if (tv_freq(bktr, frequency, TV_FREQUENCY) < 0)