• Home
  • Raw
  • Download

Lines Matching refs:fmdev

27 int fm_tx_set_stereo_mono(struct fmdev *fmdev, u16 mode)  in fm_tx_set_stereo_mono()  argument
32 if (fmdev->tx_data.aud_mode == mode) in fm_tx_set_stereo_mono()
39 ret = fmc_send_cmd(fmdev, MONO_SET, REG_WR, &payload, in fm_tx_set_stereo_mono()
44 fmdev->tx_data.aud_mode = mode; in fm_tx_set_stereo_mono()
49 static int set_rds_text(struct fmdev *fmdev, u8 *rds_text) in set_rds_text() argument
54 ret = fmc_send_cmd(fmdev, RDS_DATA_SET, REG_WR, rds_text, in set_rds_text()
61 ret = fmc_send_cmd(fmdev, DISPLAY_MODE, REG_WR, &payload, in set_rds_text()
69 static int set_rds_data_mode(struct fmdev *fmdev, u8 mode) in set_rds_data_mode() argument
76 ret = fmc_send_cmd(fmdev, PI_SET, REG_WR, &payload, in set_rds_data_mode()
83 ret = fmc_send_cmd(fmdev, DI_SET, REG_WR, &payload, in set_rds_data_mode()
92 static int set_rds_len(struct fmdev *fmdev, u8 type, u16 len) in set_rds_len() argument
99 ret = fmc_send_cmd(fmdev, RDS_CONFIG_DATA_SET, REG_WR, &payload, in set_rds_len()
108 int fm_tx_set_rds_mode(struct fmdev *fmdev, u8 rds_en_dis) in fm_tx_set_rds_mode() argument
119 set_rds_len(fmdev, 0, strlen(rds_text)); in fm_tx_set_rds_mode()
122 set_rds_text(fmdev, rds_text); in fm_tx_set_rds_mode()
125 set_rds_data_mode(fmdev, 0x0); in fm_tx_set_rds_mode()
134 ret = fmc_send_cmd(fmdev, RDS_DATA_ENB, REG_WR, &payload, in fm_tx_set_rds_mode()
141 set_rds_len(fmdev, 0, strlen(rds_text)); in fm_tx_set_rds_mode()
144 set_rds_text(fmdev, rds_text); in fm_tx_set_rds_mode()
146 fmdev->tx_data.rds.flag = rds_en_dis; in fm_tx_set_rds_mode()
151 int fm_tx_set_radio_text(struct fmdev *fmdev, u8 *rds_text, u8 rds_type) in fm_tx_set_radio_text() argument
156 if (fmdev->curr_fmmode != FM_MODE_TX) in fm_tx_set_radio_text()
159 fm_tx_set_rds_mode(fmdev, 0); in fm_tx_set_radio_text()
162 set_rds_len(fmdev, rds_type, strlen(rds_text)); in fm_tx_set_radio_text()
165 set_rds_text(fmdev, rds_text); in fm_tx_set_radio_text()
168 set_rds_data_mode(fmdev, 0x0); in fm_tx_set_radio_text()
171 ret = fmc_send_cmd(fmdev, RDS_DATA_ENB, REG_WR, &payload, in fm_tx_set_radio_text()
179 int fm_tx_set_af(struct fmdev *fmdev, u32 af) in fm_tx_set_af() argument
184 if (fmdev->curr_fmmode != FM_MODE_TX) in fm_tx_set_af()
191 ret = fmc_send_cmd(fmdev, TA_SET, REG_WR, &payload, in fm_tx_set_af()
199 int fm_tx_set_region(struct fmdev *fmdev, u8 region) in fm_tx_set_region() argument
211 ret = fmc_send_cmd(fmdev, TX_BAND_SET, REG_WR, &payload, in fm_tx_set_region()
219 int fm_tx_set_mute_mode(struct fmdev *fmdev, u8 mute_mode_toset) in fm_tx_set_mute_mode() argument
227 ret = fmc_send_cmd(fmdev, MUTE, REG_WR, &payload, in fm_tx_set_mute_mode()
236 static int set_audio_io(struct fmdev *fmdev) in set_audio_io() argument
238 struct fmtx_data *tx = &fmdev->tx_data; in set_audio_io()
244 ret = fmc_send_cmd(fmdev, AUDIO_IO_SET, REG_WR, &payload, in set_audio_io()
254 static int enable_xmit(struct fmdev *fmdev, u8 new_xmit_state) in enable_xmit() argument
256 struct fmtx_data *tx = &fmdev->tx_data; in enable_xmit()
263 ret = fmc_send_cmd(fmdev, INT_MASK_SET, REG_WR, &payload, in enable_xmit()
270 ret = fmc_send_cmd(fmdev, POWER_ENB_SET, REG_WR, &payload, in enable_xmit()
276 init_completion(&fmdev->maintask_comp); in enable_xmit()
277 timeleft = wait_for_completion_timeout(&fmdev->maintask_comp, in enable_xmit()
285 set_bit(FM_CORE_TX_XMITING, &fmdev->flag); in enable_xmit()
292 int fm_tx_set_pwr_lvl(struct fmdev *fmdev, u8 new_pwr_lvl) in fm_tx_set_pwr_lvl() argument
295 struct fmtx_data *tx = &fmdev->tx_data; in fm_tx_set_pwr_lvl()
298 if (fmdev->curr_fmmode != FM_MODE_TX) in fm_tx_set_pwr_lvl()
303 if (!test_bit(FM_CORE_READY, &fmdev->flag)) { in fm_tx_set_pwr_lvl()
316 ret = fmc_send_cmd(fmdev, POWER_LEV_SET, REG_WR, &payload, in fm_tx_set_pwr_lvl()
331 int fm_tx_set_preemph_filter(struct fmdev *fmdev, u32 preemphasis) in fm_tx_set_preemph_filter() argument
333 struct fmtx_data *tx = &fmdev->tx_data; in fm_tx_set_preemph_filter()
337 if (fmdev->curr_fmmode != FM_MODE_TX) in fm_tx_set_preemph_filter()
352 ret = fmc_send_cmd(fmdev, PREMPH_SET, REG_WR, &payload, in fm_tx_set_preemph_filter()
363 int fm_tx_get_tune_cap_val(struct fmdev *fmdev) in fm_tx_get_tune_cap_val() argument
369 if (fmdev->curr_fmmode != FM_MODE_TX) in fm_tx_get_tune_cap_val()
372 ret = fmc_send_cmd(fmdev, READ_FMANT_TUNE_VALUE, REG_RD, in fm_tx_get_tune_cap_val()
383 int fm_tx_set_freq(struct fmdev *fmdev, u32 freq_to_set) in fm_tx_set_freq() argument
385 struct fmtx_data *tx = &fmdev->tx_data; in fm_tx_set_freq()
389 if (test_bit(FM_CORE_TX_XMITING, &fmdev->flag)) { in fm_tx_set_freq()
390 enable_xmit(fmdev, 0); in fm_tx_set_freq()
391 clear_bit(FM_CORE_TX_XMITING, &fmdev->flag); in fm_tx_set_freq()
396 ret = fmc_send_cmd(fmdev, INT_MASK_SET, REG_WR, &payload, in fm_tx_set_freq()
408 ret = fmc_send_cmd(fmdev, CHANL_SET, REG_WR, &payload, in fm_tx_set_freq()
413 fm_tx_set_pwr_lvl(fmdev, tx->pwr_lvl); in fm_tx_set_freq()
414 fm_tx_set_preemph_filter(fmdev, tx->preemph); in fm_tx_set_freq()
417 set_audio_io(fmdev); in fm_tx_set_freq()
419 enable_xmit(fmdev, 0x01); /* Enable transmission */ in fm_tx_set_freq()