Lines Matching refs:config
88 radio_hal_band_config_t config; member
121 radio_hal_band_config_t config; member
142 cmd->config = *(radio_hal_band_config_t *)param; in send_command_l()
143 ALOGV("%s CMD_CONFIG type %d", __func__, cmd->config.type); in send_command_l()
320 tuner->config = cmd->config; in callback_thread_loop()
322 event.config = tuner->config; in callback_thread_loop()
324 __func__, tuner->config.type, in callback_thread_loop()
325 tuner->config.lower_limit, tuner->config.upper_limit); in callback_thread_loop()
326 if (tuner->config.type == RADIO_BAND_FM) { in callback_thread_loop()
329 tuner->config.fm.stereo, tuner->config.fm.rds, in callback_thread_loop()
330 tuner->config.fm.ta, tuner->config.fm.af, in callback_thread_loop()
331 tuner->config.fm.ea); in callback_thread_loop()
333 ALOGV(" - stereo %d", tuner->config.am.stereo); 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()
352 tuner->program.tuned = (frequency / (tuner->config.spacings[0] * 5)) % 2; in callback_thread_loop()
354 if (tuner->config.type == RADIO_BAND_FM) 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()
379 if (tuner->config.type == RADIO_BAND_FM) in callback_thread_loop()
380 tuner->program.stereo = tuner->config.fm.stereo; in callback_thread_loop()
382 tuner->program.stereo = tuner->config.am.stereo; in callback_thread_loop()
393 (tuner->config.spacings[0] * 5)) % 2; in callback_thread_loop()
404 if (tuner->config.type == RADIO_BAND_FM) in callback_thread_loop()
406 tuner->program.tuned ? tuner->config.fm.stereo : false; in callback_thread_loop()
409 tuner->program.tuned ? tuner->config.am.stereo : false; in callback_thread_loop()
433 ea_state, tuner->config.type, tuner->config.fm.ea); in callback_thread_loop()
434 if (tuner->config.type == RADIO_BAND_FM || in callback_thread_loop()
435 tuner->config.type == RADIO_BAND_FM_HD) { in callback_thread_loop()
439 } else if (tuner->config.fm.ea) { in callback_thread_loop()
445 if (tuner->config.fm.ea) { in callback_thread_loop()
494 const radio_hal_band_config_t *config) in tuner_set_configuration() argument
501 if (config == NULL) { in tuner_set_configuration()
506 send_command_l(stub_tuner, CMD_CONFIG, 500, (void *)config); in tuner_set_configuration()
514 radio_hal_band_config_t *config) in tuner_get_configuration() argument
523 src_config = &stub_tuner->config; in tuner_get_configuration()
525 if (config == NULL) { in tuner_get_configuration()
532 src_config = &cmd->config; in tuner_get_configuration()
535 *config = *src_config; in tuner_get_configuration()
579 if (channel < stub_tuner->config.lower_limit || channel > stub_tuner->config.upper_limit) { in tuner_tune()
638 const radio_hal_band_config_t *config, in rdev_open_tuner() argument
655 if (config == NULL || callback == NULL || tuner == NULL) { in rdev_open_tuner()
687 send_command_l(rdev->tuner, CMD_CONFIG, 500, (void *)config); in rdev_open_tuner()