Lines Matching refs:rx
30 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fm_rx_reset_rds_cache()
31 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_reset_rds_cache()
32 fmdev->rx.rds.wr_idx = 0; in fm_rx_reset_rds_cache()
33 fmdev->rx.rds.rd_idx = 0; in fm_rx_reset_rds_cache()
35 if (fmdev->rx.af_mode == FM_RX_RDS_AF_SWITCH_MODE_ON) in fm_rx_reset_rds_cache()
41 fmdev->rx.stat_info.picode = FM_NO_PI_CODE; in fm_rx_reset_station_info()
42 fmdev->rx.stat_info.afcache_size = 0; in fm_rx_reset_station_info()
43 fmdev->rx.stat_info.af_list_max = 0; in fm_rx_reset_station_info()
54 if (freq < fmdev->rx.region.bot_freq || freq > fmdev->rx.region.top_freq) { in fm_rx_set_freq()
75 payload = (freq - fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_set_freq()
120 curr_frq_in_khz = (fmdev->rx.region.bot_freq + ((u32)curr_frq * FM_FREQ_MUL)); in fm_rx_set_freq()
128 fmdev->rx.freq = curr_frq_in_khz; in fm_rx_set_freq()
164 fmdev->rx.region.chanl_space = spacing * FM_FREQ_MUL; in fm_rx_set_channel_spacing()
193 last_frq = (fmdev->rx.region.top_freq - fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_seek()
196 space_idx = fmdev->rx.region.chanl_space / FM_FREQ_MUL; in fm_rx_seek()
269 fmdev->rx.freq = seek_upward ? in fm_rx_seek()
270 fmdev->rx.region.top_freq : in fm_rx_seek()
271 fmdev->rx.region.bot_freq; in fm_rx_seek()
273 fmdev->rx.freq = seek_upward ? in fm_rx_seek()
274 fmdev->rx.region.bot_freq : in fm_rx_seek()
275 fmdev->rx.region.top_freq; in fm_rx_seek()
277 next_frq = (fmdev->rx.freq - in fm_rx_seek()
278 fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_seek()
289 fmdev->rx.freq = (fmdev->rx.region.bot_freq + in fm_rx_seek()
321 fmdev->rx.volume = vol_to_set; in fm_rx_set_volume()
336 *curr_vol = fmdev->rx.volume / FM_RX_VOLUME_GAIN_STEP; in fm_rx_get_volume()
345 *bot_freq = fmdev->rx.region.bot_freq; in fm_rx_get_band_freq_range()
348 *top_freq = fmdev->rx.region.top_freq; in fm_rx_get_band_freq_range()
356 *region = fmdev->rx.region.fm_band; in fm_rx_get_region()
372 if (fmdev->rx.region.fm_band == region_to_set) { in fm_rx_set_region()
387 if (fmdev->rx.freq < fmdev->rx.region.bot_freq) in fm_rx_set_region()
388 new_frq = fmdev->rx.region.bot_freq; in fm_rx_set_region()
389 else if (fmdev->rx.freq > fmdev->rx.region.top_freq) in fm_rx_set_region()
390 new_frq = fmdev->rx.region.top_freq; in fm_rx_set_region()
413 *curr_mute_mode = fmdev->rx.mute_mode; in fm_rx_get_mute_mode()
424 switch (fmdev->rx.mute_mode) { in fm_config_rx_mute_reg()
437 if (fmdev->rx.rf_depend_mute == FM_RX_RF_DEPENDENT_MUTE_ON) in fm_config_rx_mute_reg()
457 if (fmdev->rx.mute_mode == mute_mode_toset) in fm_rx_set_mute_mode()
460 org_state = fmdev->rx.mute_mode; in fm_rx_set_mute_mode()
461 fmdev->rx.mute_mode = mute_mode_toset; in fm_rx_set_mute_mode()
465 fmdev->rx.mute_mode = org_state; in fm_rx_set_mute_mode()
483 *curr_mute_mode = fmdev->rx.rf_depend_mute; in fm_rx_get_rfdepend_softmute()
502 if (fmdev->rx.rf_depend_mute == rfdepend_mute) in fm_rx_set_rfdepend_softmute()
505 org_state = fmdev->rx.rf_depend_mute; in fm_rx_set_rfdepend_softmute()
506 fmdev->rx.rf_depend_mute = rfdepend_mute; in fm_rx_set_rfdepend_softmute()
510 fmdev->rx.rf_depend_mute = org_state; in fm_rx_set_rfdepend_softmute()
559 fmdev->rx.rssi_threshold = rssi_lvl_toset; in fm_rx_set_rssi_threshold()
575 *curr_rssi_lvl = fmdev->rx.rssi_threshold; in fm_rx_get_rssi_threshold()
651 fmdev->rx.deemphasis_mode = mode; in fm_rx_set_deemphasis_mode()
667 *curr_deemphasis_mode = fmdev->rx.deemphasis_mode; in fm_rx_get_deemph_mode()
684 && fmdev->rx.rds.flag == FM_RDS_DISABLE) { in fm_rx_set_rds_mode()
723 fmdev->rx.rds.flag = FM_RDS_ENABLE; in fm_rx_set_rds_mode()
725 && fmdev->rx.rds.flag == FM_RDS_ENABLE) { in fm_rx_set_rds_mode()
734 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_set_rds_mode()
735 fmdev->rx.rds.wr_idx = 0; in fm_rx_set_rds_mode()
736 fmdev->rx.rds.rd_idx = 0; in fm_rx_set_rds_mode()
741 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fm_rx_set_rds_mode()
758 *curr_rds_en_dis = fmdev->rx.rds.flag; in fm_rx_get_rds_mode()
783 fmdev->rx.rds_mode = rds_mode; in fm_rx_set_rds_system()
814 fmdev->rx.af_mode = af_mode; in fm_rx_set_af_switch()
830 *af_mode = fmdev->rx.af_mode; in fm_rx_get_af_switch()