Lines Matching refs:rx
17 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fm_rx_reset_rds_cache()
18 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_reset_rds_cache()
19 fmdev->rx.rds.wr_idx = 0; in fm_rx_reset_rds_cache()
20 fmdev->rx.rds.rd_idx = 0; in fm_rx_reset_rds_cache()
22 if (fmdev->rx.af_mode == FM_RX_RDS_AF_SWITCH_MODE_ON) in fm_rx_reset_rds_cache()
28 fmdev->rx.stat_info.picode = FM_NO_PI_CODE; in fm_rx_reset_station_info()
29 fmdev->rx.stat_info.afcache_size = 0; in fm_rx_reset_station_info()
30 fmdev->rx.stat_info.af_list_max = 0; in fm_rx_reset_station_info()
41 if (freq < fmdev->rx.region.bot_freq || freq > fmdev->rx.region.top_freq) { in fm_rx_set_freq()
62 payload = (freq - fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_set_freq()
107 curr_frq_in_khz = (fmdev->rx.region.bot_freq + ((u32)curr_frq * FM_FREQ_MUL)); in fm_rx_set_freq()
115 fmdev->rx.freq = curr_frq_in_khz; in fm_rx_set_freq()
151 fmdev->rx.region.chanl_space = spacing * FM_FREQ_MUL; in fm_rx_set_channel_spacing()
180 last_frq = (fmdev->rx.region.top_freq - fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_seek()
183 space_idx = fmdev->rx.region.chanl_space / FM_FREQ_MUL; in fm_rx_seek()
256 fmdev->rx.freq = seek_upward ? in fm_rx_seek()
257 fmdev->rx.region.top_freq : in fm_rx_seek()
258 fmdev->rx.region.bot_freq; in fm_rx_seek()
260 fmdev->rx.freq = seek_upward ? in fm_rx_seek()
261 fmdev->rx.region.bot_freq : in fm_rx_seek()
262 fmdev->rx.region.top_freq; in fm_rx_seek()
264 next_frq = (fmdev->rx.freq - in fm_rx_seek()
265 fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_seek()
276 fmdev->rx.freq = (fmdev->rx.region.bot_freq + in fm_rx_seek()
308 fmdev->rx.volume = vol_to_set; in fm_rx_set_volume()
323 *curr_vol = fmdev->rx.volume / FM_RX_VOLUME_GAIN_STEP; in fm_rx_get_volume()
332 *bot_freq = fmdev->rx.region.bot_freq; in fm_rx_get_band_freq_range()
335 *top_freq = fmdev->rx.region.top_freq; in fm_rx_get_band_freq_range()
343 *region = fmdev->rx.region.fm_band; in fm_rx_get_region()
359 if (fmdev->rx.region.fm_band == region_to_set) { in fm_rx_set_region()
374 if (fmdev->rx.freq < fmdev->rx.region.bot_freq) in fm_rx_set_region()
375 new_frq = fmdev->rx.region.bot_freq; in fm_rx_set_region()
376 else if (fmdev->rx.freq > fmdev->rx.region.top_freq) in fm_rx_set_region()
377 new_frq = fmdev->rx.region.top_freq; in fm_rx_set_region()
400 *curr_mute_mode = fmdev->rx.mute_mode; in fm_rx_get_mute_mode()
411 switch (fmdev->rx.mute_mode) { in fm_config_rx_mute_reg()
424 if (fmdev->rx.rf_depend_mute == FM_RX_RF_DEPENDENT_MUTE_ON) in fm_config_rx_mute_reg()
444 if (fmdev->rx.mute_mode == mute_mode_toset) in fm_rx_set_mute_mode()
447 org_state = fmdev->rx.mute_mode; in fm_rx_set_mute_mode()
448 fmdev->rx.mute_mode = mute_mode_toset; in fm_rx_set_mute_mode()
452 fmdev->rx.mute_mode = org_state; in fm_rx_set_mute_mode()
470 *curr_mute_mode = fmdev->rx.rf_depend_mute; in fm_rx_get_rfdepend_softmute()
489 if (fmdev->rx.rf_depend_mute == rfdepend_mute) in fm_rx_set_rfdepend_softmute()
492 org_state = fmdev->rx.rf_depend_mute; in fm_rx_set_rfdepend_softmute()
493 fmdev->rx.rf_depend_mute = rfdepend_mute; in fm_rx_set_rfdepend_softmute()
497 fmdev->rx.rf_depend_mute = org_state; in fm_rx_set_rfdepend_softmute()
546 fmdev->rx.rssi_threshold = rssi_lvl_toset; in fm_rx_set_rssi_threshold()
562 *curr_rssi_lvl = fmdev->rx.rssi_threshold; in fm_rx_get_rssi_threshold()
638 fmdev->rx.deemphasis_mode = mode; in fm_rx_set_deemphasis_mode()
654 *curr_deemphasis_mode = fmdev->rx.deemphasis_mode; in fm_rx_get_deemph_mode()
671 && fmdev->rx.rds.flag == FM_RDS_DISABLE) { in fm_rx_set_rds_mode()
710 fmdev->rx.rds.flag = FM_RDS_ENABLE; in fm_rx_set_rds_mode()
712 && fmdev->rx.rds.flag == FM_RDS_ENABLE) { in fm_rx_set_rds_mode()
721 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_set_rds_mode()
722 fmdev->rx.rds.wr_idx = 0; in fm_rx_set_rds_mode()
723 fmdev->rx.rds.rd_idx = 0; in fm_rx_set_rds_mode()
728 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fm_rx_set_rds_mode()
745 *curr_rds_en_dis = fmdev->rx.rds.flag; in fm_rx_get_rds_mode()
770 fmdev->rx.rds_mode = rds_mode; in fm_rx_set_rds_system()
801 fmdev->rx.af_mode = af_mode; in fm_rx_set_af_switch()
817 *af_mode = fmdev->rx.af_mode; in fm_rx_get_af_switch()