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);
321 tuner->config = cmd->config;
323 event.config = tuner->config;
325 __func__, tuner->config.type,
326 tuner->config.lower_limit, tuner->config.upper_limit);
327 if (tuner->config.type == RADIO_BAND_FM) {
330 tuner->config.fm.stereo, tuner->config.fm.rds,
331 tuner->config.fm.ta, tuner->config.fm.af,
332 tuner->config.fm.ea);
334 ALOGV(" - stereo %d", tuner->config.am.stereo);
342 frequency += tuner->config.spacings[0];
344 frequency -= tuner->config.spacings[0];
346 if (frequency > (int)tuner->config.upper_limit) {
347 frequency = tuner->config.lower_limit;
349 if (frequency < (int)tuner->config.lower_limit) {
350 frequency = tuner->config.upper_limit;
353 tuner->program.tuned = (frequency / (tuner->config.spacings[0] * 5)) % 2;
355 if (tuner->config.type == RADIO_BAND_FM)
369 frequency += tuner->config.spacings[0] * 25;
371 frequency -= tuner->config.spacings[0] * 25;
373 if (frequency > (int)tuner->config.upper_limit) {
374 frequency = tuner->config.lower_limit;
376 if (frequency < (int)tuner->config.lower_limit) {
377 frequency = tuner->config.upper_limit;
381 if (tuner->config.type == RADIO_BAND_FM)
382 tuner->program.stereo = tuner->config.fm.stereo;
384 tuner->program.stereo = tuner->config.am.stereo;
396 (tuner->config.spacings[0] * 5)) % 2;
402 if (tuner->config.type == RADIO_BAND_FM)
404 tuner->program.tuned ? tuner->config.fm.stereo : false;
407 tuner->program.tuned ? tuner->config.am.stereo : false;
427 // Fire emergency announcements if they are enabled in the config. Stub
432 ea_state, tuner->config.type, tuner->config.fm.ea);
433 if (tuner->config.type == RADIO_BAND_FM ||
434 tuner->config.type == RADIO_BAND_FM_HD) {
438 } else if (tuner->config.fm.ea) {
444 if (tuner->config.fm.ea) {
493 const radio_hal_band_config_t *config)
500 if (config == NULL) {
504 if (config->lower_limit > config->upper_limit) {
509 send_command_l(stub_tuner, CMD_CONFIG, 500, (void *)config);
517 radio_hal_band_config_t *config)
526 src_config = &stub_tuner->config;
528 if (config == NULL) {
535 src_config = &cmd->config;
538 *config = *src_config;
582 if (channel < stub_tuner->config.lower_limit || channel > stub_tuner->config.upper_limit) {
646 const radio_hal_band_config_t *config,
663 if (config == NULL || callback == NULL || tuner == NULL) {
695 send_command_l(rdev->tuner, CMD_CONFIG, 500, (void *)config);