Lines Matching refs:program
93 radio_program_info_t program; member
212 radio_metadata_t **metadata, bool program) in prepare_metadata() argument
226 ret = radio_metadata_allocate(metadata, tuner->program.channel, 0); in prepare_metadata()
231 if (program) { in prepare_metadata()
356 frequency = tuner->program.channel; in callback_thread_loop()
368 tuner->program.channel = frequency; in callback_thread_loop()
369 tuner->program.tuned = (frequency / (tuner->config.spacings[0] * 5)) % 2; in callback_thread_loop()
370 tuner->program.signal_strength = 20; in callback_thread_loop()
372 tuner->program.stereo = false; in callback_thread_loop()
374 tuner->program.stereo = false; in callback_thread_loop()
375 prepare_metadata(tuner, &tuner->program.metadata, tuner->program.tuned); in callback_thread_loop()
378 event.info = tuner->program; in callback_thread_loop()
383 frequency = tuner->program.channel; in callback_thread_loop()
395 tuner->program.channel = (unsigned int)frequency; in callback_thread_loop()
396 tuner->program.tuned = true; in callback_thread_loop()
398 tuner->program.stereo = tuner->config.fm.stereo; in callback_thread_loop()
400 tuner->program.stereo = tuner->config.am.stereo; in callback_thread_loop()
401 tuner->program.signal_strength = 50; in callback_thread_loop()
402 prepare_metadata(tuner, &tuner->program.metadata, tuner->program.tuned); in callback_thread_loop()
405 event.info = tuner->program; in callback_thread_loop()
410 tuner->program.channel = cmd->param; in callback_thread_loop()
411 tuner->program.tuned = (tuner->program.channel / in callback_thread_loop()
414 if (tuner->program.tuned) { in callback_thread_loop()
417 tuner->program.signal_strength = 100; in callback_thread_loop()
419 tuner->program.stereo = in callback_thread_loop()
420 tuner->program.tuned ? tuner->config.fm.stereo : false; in callback_thread_loop()
422 tuner->program.stereo = in callback_thread_loop()
423 tuner->program.tuned ? tuner->config.am.stereo : false; in callback_thread_loop()
424 prepare_metadata(tuner, &tuner->program.metadata, tuner->program.tuned); in callback_thread_loop()
427 event.info = tuner->program; in callback_thread_loop()
634 *info = stub_tuner->program; in tuner_get_program_information()
641 if (stub_tuner->program.metadata != NULL) in tuner_get_program_information()
642 radio_metadata_add_metadata(&info->metadata, stub_tuner->program.metadata); in tuner_get_program_information()
742 if (stub_tuner->program.metadata != NULL) in rdev_close_tuner()
743 radio_metadata_deallocate(stub_tuner->program.metadata); in rdev_close_tuner()