Home
last modified time | relevance | path

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

/drivers/media/radio/
Dtea575x.c82 static void snd_tea575x_write(struct snd_tea575x *tea, unsigned int val) in snd_tea575x_write() argument
87 if (tea->ops->write_val) in snd_tea575x_write()
88 return tea->ops->write_val(tea, val); in snd_tea575x_write()
90 tea->ops->set_direction(tea, 1); in snd_tea575x_write()
96 tea->ops->set_pins(tea, data | TEA575X_WREN); in snd_tea575x_write()
98 tea->ops->set_pins(tea, data | TEA575X_WREN | TEA575X_CLK); in snd_tea575x_write()
100 tea->ops->set_pins(tea, data | TEA575X_WREN); in snd_tea575x_write()
104 if (!tea->mute) in snd_tea575x_write()
105 tea->ops->set_pins(tea, 0); in snd_tea575x_write()
108 static u32 snd_tea575x_read(struct snd_tea575x *tea) in snd_tea575x_read() argument
[all …]
Dradio-tea5777.c162 static u32 tea5777_freq_to_v4l2_freq(struct radio_tea5777 *tea, u32 freq) in tea5777_freq_to_v4l2_freq() argument
164 switch (tea->band) { in tea5777_freq_to_v4l2_freq()
173 int radio_tea5777_set_freq(struct radio_tea5777 *tea) in radio_tea5777_set_freq() argument
178 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq()
179 bands[tea->band].rangehigh); in radio_tea5777_set_freq()
182 switch (tea->band) { in radio_tea5777_set_freq()
184 tea->write_reg &= ~TEA5777_W_AM_FM_MASK; in radio_tea5777_set_freq()
186 tea->write_reg &= ~TEA5777_W_FM_PLL_MASK; in radio_tea5777_set_freq()
187 tea->write_reg |= (u64)freq << TEA5777_W_FM_PLL_SHIFT; in radio_tea5777_set_freq()
188 tea->write_reg &= ~TEA5777_W_FM_FREF_MASK; in radio_tea5777_set_freq()
[all …]
Dradio-sf16fmr2.c34 struct snd_tea575x tea; member
60 static void fmr2_tea575x_set_pins(struct snd_tea575x *tea, u8 pins) in fmr2_tea575x_set_pins() argument
62 struct fmr2 *fmr2 = tea->private_data; in fmr2_tea575x_set_pins()
73 static u8 fmr2_tea575x_get_pins(struct snd_tea575x *tea) in fmr2_tea575x_get_pins() argument
75 struct fmr2 *fmr2 = tea->private_data; in fmr2_tea575x_get_pins()
82 static void fmr2_tea575x_set_direction(struct snd_tea575x *tea, bool output) in fmr2_tea575x_set_direction() argument
118 if (!fmr2->tea.mute) in tc9154a_set_pins()
151 struct snd_tea575x *tea = container_of(ctrl->handler, struct snd_tea575x, ctrl_handler); in fmr2_s_ctrl() local
152 struct fmr2 *fmr2 = tea->private_data; in fmr2_s_ctrl()
184 static int fmr2_tea_ext_init(struct snd_tea575x *tea) in fmr2_tea_ext_init() argument
[all …]
Dradio-maxiradio.c72 struct snd_tea575x tea; member
84 static void maxiradio_tea575x_set_pins(struct snd_tea575x *tea, u8 pins) in maxiradio_tea575x_set_pins() argument
86 struct maxiradio *dev = tea->private_data; in maxiradio_tea575x_set_pins()
99 static u8 maxiradio_tea575x_get_pins(struct snd_tea575x *tea) in maxiradio_tea575x_get_pins() argument
101 struct maxiradio *dev = tea->private_data; in maxiradio_tea575x_get_pins()
108 static void maxiradio_tea575x_set_direction(struct snd_tea575x *tea, bool output) in maxiradio_tea575x_set_direction() argument
139 dev->tea.private_data = dev; in maxiradio_probe()
140 dev->tea.ops = &maxiradio_tea_ops; in maxiradio_probe()
143 dev->tea.cannot_read_data = true; in maxiradio_probe()
144 dev->tea.v4l2_dev = v4l2_dev; in maxiradio_probe()
[all …]
Dradio-shark2.c60 struct radio_tea5777 tea; member
75 static int shark_write_reg(struct radio_tea5777 *tea, u64 reg) in shark_write_reg() argument
77 struct shark_device *shark = tea->private_data; in shark_write_reg()
85 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-write: %*ph\n", in shark_write_reg()
93 v4l2_err(tea->v4l2_dev, "write error: %d\n", res); in shark_write_reg()
100 static int shark_read_reg(struct radio_tea5777 *tea, u32 *reg_ret) in shark_read_reg() argument
102 struct shark_device *shark = tea->private_data; in shark_read_reg()
113 v4l2_err(tea->v4l2_dev, "request-read error: %d\n", res); in shark_read_reg()
122 v4l2_err(tea->v4l2_dev, "read error: %d\n", res); in shark_read_reg()
129 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-read: %*ph\n", in shark_read_reg()
[all …]
Dradio-shark.c64 struct snd_tea575x tea; member
80 static void shark_write_val(struct snd_tea575x *tea, u32 val) in shark_write_val() argument
82 struct shark_device *shark = tea->private_data; in shark_write_val()
104 static u32 shark_read_val(struct snd_tea575x *tea) in shark_read_val() argument
106 struct shark_device *shark = tea->private_data; in shark_read_val()
142 shark->tea.stereo = true; in shark_read_val()
144 shark->tea.stereo = false; in shark_read_val()
295 mutex_lock(&shark->tea.mutex); in usb_shark_disconnect()
297 snd_tea575x_exit(&shark->tea); in usb_shark_disconnect()
298 mutex_unlock(&shark->tea.mutex); in usb_shark_disconnect()
[all …]
Dradio-tea5777.h36 int (*write_reg)(struct radio_tea5777 *tea, u64 val);
47 int (*read_reg)(struct radio_tea5777 *tea, u32 *val);
72 int radio_tea5777_init(struct radio_tea5777 *tea, struct module *owner);
73 void radio_tea5777_exit(struct radio_tea5777 *tea);
74 int radio_tea5777_set_freq(struct radio_tea5777 *tea);
/drivers/media/pci/bt8xx/
Dbttv-cards.c3741 static void bttv_tea575x_set_pins(struct snd_tea575x *tea, u8 pins) in bttv_tea575x_set_pins() argument
3743 struct bttv *btv = tea->private_data; in bttv_tea575x_set_pins()
3762 static u8 bttv_tea575x_get_pins(struct snd_tea575x *tea) in bttv_tea575x_get_pins() argument
3764 struct bttv *btv = tea->private_data; in bttv_tea575x_get_pins()
3789 static void bttv_tea575x_set_direction(struct snd_tea575x *tea, bool output) in bttv_tea575x_set_direction() argument
3791 struct bttv *btv = tea->private_data; in bttv_tea575x_set_direction()
3811 btv->tea.private_data = btv; in tea575x_init()
3812 btv->tea.ops = &bttv_tea_ops; in tea575x_init()
3813 if (!snd_tea575x_hw_init(&btv->tea)) { in tea575x_init()
3815 btv->tea.mute = false; in tea575x_init()
Dbttvp.h443 struct snd_tea575x tea; member
Dbttv-driver.c1834 btv->tea.freq = btv->radio_freq; in bttv_set_frequency()
1835 snd_tea575x_set_freq(&btv->tea); in bttv_set_frequency()
3214 return snd_tea575x_g_tuner(&btv->tea, t); in radio_g_tuner()
3240 return snd_tea575x_s_hw_freq_seek(file, &btv->tea, a); in radio_s_hw_freq_seek()
3252 return snd_tea575x_enum_freq_bands(&btv->tea, band); in radio_enum_freq_bands()