Lines Matching refs:frequency
338 int frequency; in callback_thread_loop() local
339 frequency = tuner->program.channel; in callback_thread_loop()
341 frequency += tuner->config.spacings[0]; in callback_thread_loop()
343 frequency -= tuner->config.spacings[0]; in callback_thread_loop()
345 if (frequency > (int)tuner->config.upper_limit) { in callback_thread_loop()
346 frequency = tuner->config.lower_limit; in callback_thread_loop()
348 if (frequency < (int)tuner->config.lower_limit) { in callback_thread_loop()
349 frequency = tuner->config.upper_limit; in callback_thread_loop()
351 tuner->program.channel = frequency; in callback_thread_loop()
352 tuner->program.tuned = (frequency / (tuner->config.spacings[0] * 5)) % 2; in callback_thread_loop()
364 int frequency; in callback_thread_loop() local
365 frequency = tuner->program.channel; in callback_thread_loop()
367 frequency += tuner->config.spacings[0] * 25; in callback_thread_loop()
369 frequency -= tuner->config.spacings[0] * 25; in callback_thread_loop()
371 if (frequency > (int)tuner->config.upper_limit) { in callback_thread_loop()
372 frequency = tuner->config.lower_limit; in callback_thread_loop()
374 if (frequency < (int)tuner->config.lower_limit) { in callback_thread_loop()
375 frequency = tuner->config.upper_limit; in callback_thread_loop()
377 tuner->program.channel = (unsigned int)frequency; in callback_thread_loop()