Home
last modified time | relevance | path

Searched refs:tea (Results 1 – 10 of 10) sorted by relevance

/drivers/media/radio/
Dtea575x.c93 static void snd_tea575x_write(struct snd_tea575x *tea, unsigned int val) in snd_tea575x_write() argument
98 if (tea->ops->write_val) in snd_tea575x_write()
99 return tea->ops->write_val(tea, val); in snd_tea575x_write()
101 tea->ops->set_direction(tea, 1); in snd_tea575x_write()
107 tea->ops->set_pins(tea, data | TEA575X_WREN); in snd_tea575x_write()
109 tea->ops->set_pins(tea, data | TEA575X_WREN | TEA575X_CLK); in snd_tea575x_write()
111 tea->ops->set_pins(tea, data | TEA575X_WREN); in snd_tea575x_write()
115 if (!tea->mute) in snd_tea575x_write()
116 tea->ops->set_pins(tea, 0); in snd_tea575x_write()
119 static u32 snd_tea575x_read(struct snd_tea575x *tea) in snd_tea575x_read() argument
[all …]
Dradio-tea5777.c176 static u32 tea5777_freq_to_v4l2_freq(struct radio_tea5777 *tea, u32 freq) in tea5777_freq_to_v4l2_freq() argument
178 switch (tea->band) { in tea5777_freq_to_v4l2_freq()
187 int radio_tea5777_set_freq(struct radio_tea5777 *tea) in radio_tea5777_set_freq() argument
192 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq()
193 bands[tea->band].rangehigh); in radio_tea5777_set_freq()
196 switch (tea->band) { in radio_tea5777_set_freq()
198 tea->write_reg &= ~TEA5777_W_AM_FM_MASK; in radio_tea5777_set_freq()
200 tea->write_reg &= ~TEA5777_W_FM_PLL_MASK; in radio_tea5777_set_freq()
201 tea->write_reg |= (u64)freq << TEA5777_W_FM_PLL_SHIFT; in radio_tea5777_set_freq()
202 tea->write_reg &= ~TEA5777_W_FM_FREF_MASK; in radio_tea5777_set_freq()
[all …]
Dradio-sf16fmr2.c33 struct snd_tea575x tea; member
59 static void fmr2_tea575x_set_pins(struct snd_tea575x *tea, u8 pins) in fmr2_tea575x_set_pins() argument
61 struct fmr2 *fmr2 = tea->private_data; in fmr2_tea575x_set_pins()
72 static u8 fmr2_tea575x_get_pins(struct snd_tea575x *tea) in fmr2_tea575x_get_pins() argument
74 struct fmr2 *fmr2 = tea->private_data; in fmr2_tea575x_get_pins()
81 static void fmr2_tea575x_set_direction(struct snd_tea575x *tea, bool output) in fmr2_tea575x_set_direction() argument
117 if (!fmr2->tea.mute) in tc9154a_set_pins()
150 struct snd_tea575x *tea = container_of(ctrl->handler, struct snd_tea575x, ctrl_handler); in fmr2_s_ctrl() local
151 struct fmr2 *fmr2 = tea->private_data; in fmr2_s_ctrl()
183 static int fmr2_tea_ext_init(struct snd_tea575x *tea) in fmr2_tea_ext_init() argument
[all …]
Dradio-maxiradio.c71 struct snd_tea575x tea; member
83 static void maxiradio_tea575x_set_pins(struct snd_tea575x *tea, u8 pins) in maxiradio_tea575x_set_pins() argument
85 struct maxiradio *dev = tea->private_data; in maxiradio_tea575x_set_pins()
98 static u8 maxiradio_tea575x_get_pins(struct snd_tea575x *tea) in maxiradio_tea575x_get_pins() argument
100 struct maxiradio *dev = tea->private_data; in maxiradio_tea575x_get_pins()
107 static void maxiradio_tea575x_set_direction(struct snd_tea575x *tea, bool output) in maxiradio_tea575x_set_direction() argument
138 dev->tea.private_data = dev; in maxiradio_probe()
139 dev->tea.ops = &maxiradio_tea_ops; in maxiradio_probe()
142 dev->tea.cannot_read_data = true; in maxiradio_probe()
143 dev->tea.v4l2_dev = v4l2_dev; in maxiradio_probe()
[all …]
Dradio-shark2.c64 struct radio_tea5777 tea; member
79 static int shark_write_reg(struct radio_tea5777 *tea, u64 reg) in shark_write_reg() argument
81 struct shark_device *shark = tea->private_data; in shark_write_reg()
89 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-write: %*ph\n", in shark_write_reg()
97 v4l2_err(tea->v4l2_dev, "write error: %d\n", res); in shark_write_reg()
104 static int shark_read_reg(struct radio_tea5777 *tea, u32 *reg_ret) in shark_read_reg() argument
106 struct shark_device *shark = tea->private_data; in shark_read_reg()
117 v4l2_err(tea->v4l2_dev, "request-read error: %d\n", res); in shark_read_reg()
126 v4l2_err(tea->v4l2_dev, "read error: %d\n", res); in shark_read_reg()
133 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-read: %*ph\n", in shark_read_reg()
[all …]
Dradio-shark.c68 struct snd_tea575x tea; member
84 static void shark_write_val(struct snd_tea575x *tea, u32 val) in shark_write_val() argument
86 struct shark_device *shark = tea->private_data; in shark_write_val()
108 static u32 shark_read_val(struct snd_tea575x *tea) in shark_read_val() argument
110 struct shark_device *shark = tea->private_data; in shark_read_val()
146 shark->tea.stereo = true; in shark_read_val()
148 shark->tea.stereo = false; in shark_read_val()
299 mutex_lock(&shark->tea.mutex); in usb_shark_disconnect()
301 snd_tea575x_exit(&shark->tea); in usb_shark_disconnect()
302 mutex_unlock(&shark->tea.mutex); in usb_shark_disconnect()
[all …]
Dradio-tea5777.h50 int (*write_reg)(struct radio_tea5777 *tea, u64 val);
61 int (*read_reg)(struct radio_tea5777 *tea, u32 *val);
86 int radio_tea5777_init(struct radio_tea5777 *tea, struct module *owner);
87 void radio_tea5777_exit(struct radio_tea5777 *tea);
88 int radio_tea5777_set_freq(struct radio_tea5777 *tea);
/drivers/media/pci/bt8xx/
Dbttv-cards.c3749 static void bttv_tea575x_set_pins(struct snd_tea575x *tea, u8 pins) in bttv_tea575x_set_pins() argument
3751 struct bttv *btv = tea->private_data; in bttv_tea575x_set_pins()
3770 static u8 bttv_tea575x_get_pins(struct snd_tea575x *tea) in bttv_tea575x_get_pins() argument
3772 struct bttv *btv = tea->private_data; in bttv_tea575x_get_pins()
3797 static void bttv_tea575x_set_direction(struct snd_tea575x *tea, bool output) in bttv_tea575x_set_direction() argument
3799 struct bttv *btv = tea->private_data; in bttv_tea575x_set_direction()
3819 btv->tea.private_data = btv; in tea575x_init()
3820 btv->tea.ops = &bttv_tea_ops; in tea575x_init()
3821 if (!snd_tea575x_hw_init(&btv->tea)) { in tea575x_init()
3823 btv->tea.mute = false; in tea575x_init()
Dbttvp.h455 struct snd_tea575x tea; member
Dbttv-driver.c1865 btv->tea.freq = btv->radio_freq; in bttv_set_frequency()
1866 snd_tea575x_set_freq(&btv->tea); in bttv_set_frequency()
3271 return snd_tea575x_g_tuner(&btv->tea, t); in radio_g_tuner()
3297 return snd_tea575x_s_hw_freq_seek(file, &btv->tea, a); in radio_s_hw_freq_seek()
3309 return snd_tea575x_enum_freq_bands(&btv->tea, band); in radio_enum_freq_bands()