Lines Matching refs:stub_tuner

511     struct stub_radio_tuner *stub_tuner = (struct stub_radio_tuner *)tuner;  in tuner_set_configuration()  local
514 ALOGI("%s stub_tuner %p", __func__, stub_tuner); in tuner_set_configuration()
515 pthread_mutex_lock(&stub_tuner->lock); in tuner_set_configuration()
524 send_command_l(stub_tuner, CMD_CANCEL, thread_cmd_delay_ms[CMD_CANCEL], NULL); in tuner_set_configuration()
525 send_command_l(stub_tuner, CMD_CONFIG, thread_cmd_delay_ms[CMD_CONFIG], (void *)config); in tuner_set_configuration()
528 pthread_mutex_unlock(&stub_tuner->lock); in tuner_set_configuration()
535 struct stub_radio_tuner *stub_tuner = (struct stub_radio_tuner *)tuner; in tuner_get_configuration() local
540 ALOGI("%s stub_tuner %p", __func__, stub_tuner); in tuner_get_configuration()
541 pthread_mutex_lock(&stub_tuner->lock); in tuner_get_configuration()
542 src_config = &stub_tuner->config; in tuner_get_configuration()
548 list_for_each(item, &stub_tuner->command_list) { in tuner_get_configuration()
557 pthread_mutex_unlock(&stub_tuner->lock); in tuner_get_configuration()
564 struct stub_radio_tuner *stub_tuner = (struct stub_radio_tuner *)tuner; in tuner_step() local
567 __func__, stub_tuner, direction, skip_sub_channel); in tuner_step()
569 pthread_mutex_lock(&stub_tuner->lock); in tuner_step()
570 send_command_l(stub_tuner, CMD_STEP, thread_cmd_delay_ms[CMD_STEP], &direction); in tuner_step()
571 pthread_mutex_unlock(&stub_tuner->lock); in tuner_step()
578 struct stub_radio_tuner *stub_tuner = (struct stub_radio_tuner *)tuner; in tuner_scan() local
581 __func__, stub_tuner, direction, skip_sub_channel); in tuner_scan()
583 pthread_mutex_lock(&stub_tuner->lock); in tuner_scan()
584 send_command_l(stub_tuner, CMD_SCAN, thread_cmd_delay_ms[CMD_SCAN], &direction); in tuner_scan()
585 pthread_mutex_unlock(&stub_tuner->lock); in tuner_scan()
592 struct stub_radio_tuner *stub_tuner = (struct stub_radio_tuner *)tuner; in tuner_tune() local
595 __func__, stub_tuner, channel, sub_channel); in tuner_tune()
597 pthread_mutex_lock(&stub_tuner->lock); in tuner_tune()
598 if (channel < stub_tuner->config.lower_limit || channel > stub_tuner->config.upper_limit) { in tuner_tune()
599 pthread_mutex_unlock(&stub_tuner->lock); in tuner_tune()
603 send_command_l(stub_tuner, CMD_TUNE, thread_cmd_delay_ms[CMD_TUNE], &channel); in tuner_tune()
604 pthread_mutex_unlock(&stub_tuner->lock); in tuner_tune()
610 struct stub_radio_tuner *stub_tuner = (struct stub_radio_tuner *)tuner; in tuner_cancel() local
612 ALOGI("%s stub_tuner %p", __func__, stub_tuner); in tuner_cancel()
614 pthread_mutex_lock(&stub_tuner->lock); in tuner_cancel()
615 send_command_l(stub_tuner, CMD_CANCEL, thread_cmd_delay_ms[CMD_CANCEL], NULL); in tuner_cancel()
616 pthread_mutex_unlock(&stub_tuner->lock); in tuner_cancel()
623 struct stub_radio_tuner *stub_tuner = (struct stub_radio_tuner *)tuner; in tuner_get_program_information() local
627 ALOGI("%s stub_tuner %p", __func__, stub_tuner); in tuner_get_program_information()
628 pthread_mutex_lock(&stub_tuner->lock); in tuner_get_program_information()
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()
645 pthread_mutex_unlock(&stub_tuner->lock); in tuner_get_program_information()
725 struct stub_radio_tuner *stub_tuner = (struct stub_radio_tuner *)tuner; in rdev_close_tuner() local
736 pthread_mutex_lock(&stub_tuner->lock); in rdev_close_tuner()
737 stub_tuner->callback = NULL; in rdev_close_tuner()
738 send_command_l(stub_tuner, CMD_EXIT, thread_cmd_delay_ms[CMD_EXIT], NULL); in rdev_close_tuner()
739 pthread_mutex_unlock(&stub_tuner->lock); in rdev_close_tuner()
740 pthread_join(stub_tuner->callback_thread, (void **) NULL); in rdev_close_tuner()
742 if (stub_tuner->program.metadata != NULL) in rdev_close_tuner()
743 radio_metadata_deallocate(stub_tuner->program.metadata); in rdev_close_tuner()
745 free(stub_tuner); in rdev_close_tuner()