Lines Matching refs:freq
144 u32 freq = val & TEA575X_BIT_FREQ_MASK; in snd_tea575x_val_to_freq() local
146 if (freq == 0) in snd_tea575x_val_to_freq()
147 return freq; in snd_tea575x_val_to_freq()
152 freq *= 125; in snd_tea575x_val_to_freq()
153 freq /= 10; in snd_tea575x_val_to_freq()
155 freq -= TEA575X_FMIF; in snd_tea575x_val_to_freq()
159 freq *= 125; in snd_tea575x_val_to_freq()
160 freq /= 10; in snd_tea575x_val_to_freq()
162 freq += TEA575X_FMIF; in snd_tea575x_val_to_freq()
166 freq -= TEA575X_AMIF; in snd_tea575x_val_to_freq()
170 return clamp(freq * 16, bands[tea->band].rangelow, in snd_tea575x_val_to_freq()
181 u32 freq = tea->freq / 16; /* to kHz */ in snd_tea575x_set_freq() local
188 freq += TEA575X_FMIF; in snd_tea575x_set_freq()
190 freq *= 10; in snd_tea575x_set_freq()
191 freq /= 125; in snd_tea575x_set_freq()
196 freq -= TEA575X_FMIF; in snd_tea575x_set_freq()
198 freq *= 10; in snd_tea575x_set_freq()
199 freq /= 125; in snd_tea575x_set_freq()
204 freq += TEA575X_AMIF; in snd_tea575x_set_freq()
210 tea->val |= freq & TEA575X_BIT_FREQ_MASK; in snd_tea575x_set_freq()
212 tea->freq = snd_tea575x_val_to_freq(tea, tea->val); in snd_tea575x_set_freq()
331 f->frequency = tea->freq; in vidioc_g_frequency()
350 tea->freq = clamp_t(u32, f->frequency, bands[tea->band].rangelow, in vidioc_s_frequency()
384 tea->freq = clamp(tea->freq, bands[i].rangelow, in snd_tea575x_s_hw_freq_seek()
411 u32 freq; in snd_tea575x_s_hw_freq_seek() local
416 freq = snd_tea575x_get_freq(tea); in snd_tea575x_s_hw_freq_seek()
417 if (freq) /* available */ in snd_tea575x_s_hw_freq_seek()
420 if (freq == 0) /* shouldn't happen */ in snd_tea575x_s_hw_freq_seek()
426 if (abs(tea->freq - freq) < 16 * spacing || in snd_tea575x_s_hw_freq_seek()
427 (a->seek_upward && freq < tea->freq) || in snd_tea575x_s_hw_freq_seek()
428 (!a->seek_upward && freq > tea->freq)) { in snd_tea575x_s_hw_freq_seek()
432 tea->freq = freq; in snd_tea575x_s_hw_freq_seek()
508 tea->freq = 90500 * 16; /* 90.5Mhz default */ in snd_tea575x_hw_init()