Lines Matching refs:tea

80 static void snd_tea575x_set_freq(struct snd_tea575x *tea)  in snd_tea575x_set_freq()  argument
84 freq = tea->freq / 16; /* to kHz */ in snd_tea575x_set_freq()
90 if (tea->tea5759) in snd_tea575x_set_freq()
91 freq -= tea->freq_fixup; in snd_tea575x_set_freq()
93 freq += tea->freq_fixup; in snd_tea575x_set_freq()
98 tea->val &= ~TEA575X_BIT_FREQ_MASK; in snd_tea575x_set_freq()
99 tea->val |= freq & TEA575X_BIT_FREQ_MASK; in snd_tea575x_set_freq()
100 tea->ops->write(tea, tea->val); in snd_tea575x_set_freq()
110 struct snd_tea575x *tea = video_drvdata(file); in vidioc_querycap() local
112 strcpy(v->card, tea->tea5759 ? "TEA5759" : "TEA5757"); in vidioc_querycap()
149 struct snd_tea575x *tea = video_drvdata(file); in vidioc_g_frequency() local
152 f->frequency = tea->freq; in vidioc_g_frequency()
159 struct snd_tea575x *tea = video_drvdata(file); in vidioc_s_frequency() local
164 tea->freq = f->frequency; in vidioc_s_frequency()
166 snd_tea575x_set_freq(tea); in vidioc_s_frequency()
208 struct snd_tea575x *tea = video_drvdata(file); in vidioc_g_ctrl() local
212 if (tea->ops->mute) { in vidioc_g_ctrl()
213 ctrl->value = tea->mute; in vidioc_g_ctrl()
223 struct snd_tea575x *tea = video_drvdata(file); in vidioc_s_ctrl() local
227 if (tea->ops->mute) { in vidioc_s_ctrl()
228 tea->ops->mute(tea, ctrl->value); in vidioc_s_ctrl()
229 tea->mute = ctrl->value; in vidioc_s_ctrl()
251 struct snd_tea575x *tea = video_drvdata(file); in snd_tea575x_exclusive_open() local
253 return test_and_set_bit(0, &tea->in_use) ? -EBUSY : 0; in snd_tea575x_exclusive_open()
258 struct snd_tea575x *tea = video_drvdata(file); in snd_tea575x_exclusive_release() local
260 clear_bit(0, &tea->in_use); in snd_tea575x_exclusive_release()
296 void snd_tea575x_init(struct snd_tea575x *tea) in snd_tea575x_init() argument
302 val = tea->ops->read(tea); in snd_tea575x_init()
309 tea->in_use = 0; in snd_tea575x_init()
310 tea->val = TEA575X_BIT_BAND_FM | TEA575X_BIT_SEARCH_10_40; in snd_tea575x_init()
311 tea->freq = 90500 * 16; /* 90.5Mhz default */ in snd_tea575x_init()
321 strcpy(tea575x_radio.name, tea->tea5759 ? in snd_tea575x_init()
324 video_set_drvdata(tea575x_radio_inst, tea); in snd_tea575x_init()
334 snd_tea575x_set_freq(tea); in snd_tea575x_init()
337 if (tea->ops->mute) { in snd_tea575x_init()
338 tea->ops->mute(tea, 1); in snd_tea575x_init()
339 tea->mute = 1; in snd_tea575x_init()
341 tea->vd = tea575x_radio_inst; in snd_tea575x_init()
344 void snd_tea575x_exit(struct snd_tea575x *tea) in snd_tea575x_exit() argument
346 if (tea->vd) { in snd_tea575x_exit()
347 video_unregister_device(tea->vd); in snd_tea575x_exit()
348 tea->vd = NULL; in snd_tea575x_exit()