Lines Matching defs:freq
66 static void v4l1_setfreq(int fd, unsigned long freq, int verb);
96 static int lookup_station(unsigned long freq);
214 static void v4l1_setfreq(int fd, unsigned long freq, int verb) {
217 f1 = (freq * 16) / 1000;
219 if (verb) fprintf(stderr, "read freq: %d\n", (int) f0);
220 if (freq > 0) {
225 if (verb) fprintf(stderr, "read freq: %d\n", (int) f0);
226 last_freq = freq;
230 if (!fd || !freq || !verb) {}
422 unsigned long freq = lookup_freq(sta);
423 v4l1_setfreq(*fd, freq, 1);
553 unsigned long freq = 0;
564 freq = lookup_freq(--cur);
565 if (freq) {
571 freq = lookup_freq(++cur);
572 if (freq) {
577 freq = lookup_freq(sta);
580 fprintf(stderr, "to station %d / %d\n", cur, (int) freq);
581 v4l1_setfreq(raw_fb_fd, freq, 0);
1422 static int lookup_station(unsigned long freq) {
1426 if (0) fprintf(stderr, "%lu %lu\n", freq, custom_freq[i]);
1427 if (freq == custom_freq[i]) {
1433 if (freq == ntsc_cable[i]) {
1516 } else if (strstr(lb, "freq")) {
1539 } else if (strstr(lb2, "freq")) {
1620 if (strstr(p, "freq") && (q = strchr(p, '=')) != NULL) {