Home | History | Annotate | Download | only in radio

Lines Matching defs:config

88     radio_hal_band_config_t config;
121 radio_hal_band_config_t config;
142 cmd->config = *(radio_hal_band_config_t *)param;
143 ALOGV("%s CMD_CONFIG type %d", __func__, cmd->config.type);
320 tuner->config = cmd->config;
322 event.config = tuner->config;
324 __func__, tuner->config.type,
325 tuner->config.lower_limit, tuner->config.upper_limit);
326 if (tuner->config.type == RADIO_BAND_FM) {
329 tuner->config.fm.stereo, tuner->config.fm.rds,
330 tuner->config.fm.ta, tuner->config.fm.af,
331 tuner->config.fm.ea);
333 ALOGV(" - stereo %d", tuner->config.am.stereo);
341 frequency += tuner->config.spacings[0];
343 frequency -= tuner->config.spacings[0];
345 if (frequency > (int)tuner->config.upper_limit) {
346 frequency = tuner->config.lower_limit;
348 if (frequency < (int)tuner->config.lower_limit) {
349 frequency = tuner->config.upper_limit;
352 tuner->program.tuned = (frequency / (tuner->config.spacings[0] * 5)) % 2;
354 if (tuner->config.type == RADIO_BAND_FM)
367 frequency += tuner->config.spacings[0] * 25;
369 frequency -= tuner->config.spacings[0] * 25;
371 if (frequency > (int)tuner->config.upper_limit) {
372 frequency = tuner->config.lower_limit;
374 if (frequency < (int)tuner->config.lower_limit) {
375 frequency = tuner->config.upper_limit;
379 if (tuner->config.type == RADIO_BAND_FM)
380 tuner->program.stereo = tuner->config.fm.stereo;
382 tuner->program.stereo = tuner->config.am.stereo;
393 (tuner->config.spacings[0] * 5)) % 2;
404 if (tuner->config.type == RADIO_BAND_FM)
406 tuner->program.tuned ? tuner->config.fm.stereo : false;
409 tuner->program.tuned ? tuner->config.am.stereo : false;
428 // Fire emergency announcements if they are enabled in the config. Stub
433 ea_state, tuner->config.type, tuner->config.fm.ea);
434 if (tuner->config.type == RADIO_BAND_FM ||
435 tuner->config.type == RADIO_BAND_FM_HD) {
439 } else if (tuner->config.fm.ea) {
445 if (tuner->config.fm.ea) {
494 const radio_hal_band_config_t *config)
501 if (config == NULL) {
506 send_command_l(stub_tuner, CMD_CONFIG, 500, (void *)config);
514 radio_hal_band_config_t *config)
523 src_config = &stub_tuner->config;
525 if (config == NULL) {
532 src_config = &cmd->config;
535 *config = *src_config;
579 if (channel < stub_tuner->config.lower_limit || channel > stub_tuner->config.upper_limit) {
638 const radio_hal_band_config_t *config,
655 if (config == NULL || callback == NULL || tuner == NULL) {
687 send_command_l(rdev->tuner, CMD_CONFIG, 500, (void *)config);