Home
last modified time | relevance | path

Searched refs:fmdev (Results 1 – 9 of 9) sorted by relevance

/drivers/media/radio/wl128x/
Dfmdrv_common.c79 static void fm_irq_send_flag_getcmd(struct fmdev *);
80 static void fm_irq_handle_flag_getcmd_resp(struct fmdev *);
81 static void fm_irq_handle_hw_malfunction(struct fmdev *);
82 static void fm_irq_handle_rds_start(struct fmdev *);
83 static void fm_irq_send_rdsdata_getcmd(struct fmdev *);
84 static void fm_irq_handle_rdsdata_getcmd_resp(struct fmdev *);
85 static void fm_irq_handle_rds_finish(struct fmdev *);
86 static void fm_irq_handle_tune_op_ended(struct fmdev *);
87 static void fm_irq_handle_power_enb(struct fmdev *);
88 static void fm_irq_handle_low_rssi_start(struct fmdev *);
[all …]
Dfmdrv_rx.c28 void fm_rx_reset_rds_cache(struct fmdev *fmdev) in fm_rx_reset_rds_cache() argument
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()
36 fmdev->irq_info.mask |= FM_LEV_EVENT; in fm_rx_reset_rds_cache()
39 void fm_rx_reset_station_info(struct fmdev *fmdev) in fm_rx_reset_station_info() argument
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()
[all …]
Dfmdrv_tx.c27 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()
[all …]
Dfmdrv_v4l2.c50 struct fmdev *fmdev; in fm_v4l2_fops_read() local
52 fmdev = video_drvdata(file); in fm_v4l2_fops_read()
59 if (mutex_lock_interruptible(&fmdev->mutex)) in fm_v4l2_fops_read()
63 ret = fm_rx_get_rds_mode(fmdev, &rds_mode); in fm_v4l2_fops_read()
70 ret = fmc_set_rds_mode(fmdev, FM_RDS_ENABLE); in fm_v4l2_fops_read()
78 ret = fmc_transfer_rds_from_internal_buff(fmdev, file, buf, count); in fm_v4l2_fops_read()
80 mutex_unlock(&fmdev->mutex); in fm_v4l2_fops_read()
90 struct fmdev *fmdev; in fm_v4l2_fops_write() local
99 fmdev = video_drvdata(file); in fm_v4l2_fops_write()
100 if (mutex_lock_interruptible(&fmdev->mutex)) in fm_v4l2_fops_write()
[all …]
Dfmdrv_rx.h25 int fm_rx_set_freq(struct fmdev *, u32);
26 int fm_rx_set_mute_mode(struct fmdev *, u8);
27 int fm_rx_set_stereo_mono(struct fmdev *, u16);
28 int fm_rx_set_rds_mode(struct fmdev *, u8);
29 int fm_rx_set_rds_system(struct fmdev *, u8);
30 int fm_rx_set_volume(struct fmdev *, u16);
31 int fm_rx_set_rssi_threshold(struct fmdev *, short);
32 int fm_rx_set_region(struct fmdev *, u8);
33 int fm_rx_set_rfdepend_softmute(struct fmdev *, u8);
34 int fm_rx_set_deemphasis_mode(struct fmdev *, u16);
[all …]
Dfmdrv_tx.h25 int fm_tx_set_freq(struct fmdev *, u32);
26 int fm_tx_set_pwr_lvl(struct fmdev *, u8);
27 int fm_tx_set_region(struct fmdev *, u8);
28 int fm_tx_set_mute_mode(struct fmdev *, u8);
29 int fm_tx_set_stereo_mono(struct fmdev *, u16);
30 int fm_tx_set_rds_mode(struct fmdev *, u8);
31 int fm_tx_set_radio_text(struct fmdev *, u8 *, u8);
32 int fm_tx_set_af(struct fmdev *, u32);
33 int fm_tx_set_preemph_filter(struct fmdev *, u32);
34 int fm_tx_get_tune_cap_val(struct fmdev *);
Dfmdrv_common.h371 int fmc_prepare(struct fmdev *);
372 int fmc_release(struct fmdev *);
374 void fmc_update_region_info(struct fmdev *, u8);
375 int fmc_send_cmd(struct fmdev *, u8, u16,
377 int fmc_is_rds_data_available(struct fmdev *, struct file *,
379 int fmc_transfer_rds_from_internal_buff(struct fmdev *, struct file *,
382 int fmc_set_freq(struct fmdev *, u32);
383 int fmc_set_mode(struct fmdev *, u8);
384 int fmc_set_region(struct fmdev *, u8);
385 int fmc_set_mute_mode(struct fmdev *, u8);
[all …]
Dfmdrv.h108 struct fmdev;
109 typedef void (*int_handler_prototype) (struct fmdev *);
204 struct fmdev { struct
Dfmdrv_v4l2.h30 int fm_v4l2_init_video_device(struct fmdev *, int);