Lines Matching refs:band
149 switch (tea->band) { in snd_tea575x_val_to_freq()
170 return clamp(freq * 16, bands[tea->band].rangelow, in snd_tea575x_val_to_freq()
171 bands[tea->band].rangehigh); /* from kHz */ in snd_tea575x_val_to_freq()
182 u32 band = 0; in snd_tea575x_set_freq() local
184 switch (tea->band) { in snd_tea575x_set_freq()
186 band = TEA575X_BIT_BAND_FM; in snd_tea575x_set_freq()
194 band = TEA575X_BIT_BAND_FM; in snd_tea575x_set_freq()
202 band = TEA575X_BIT_BAND_MW; in snd_tea575x_set_freq()
209 tea->val |= band; in snd_tea575x_set_freq()
233 struct v4l2_frequency_band *band) in snd_tea575x_enum_freq_bands() argument
237 if (band->tuner != 0) in snd_tea575x_enum_freq_bands()
240 switch (band->index) { in snd_tea575x_enum_freq_bands()
257 *band = bands[index]; in snd_tea575x_enum_freq_bands()
259 band->capability |= V4L2_TUNER_CAP_HWSEEK_BOUNDED; in snd_tea575x_enum_freq_bands()
266 struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument
270 return snd_tea575x_enum_freq_bands(tea, band); in vidioc_enum_freq_bands()
317 if (tea->band != BAND_AM && tea->val != orig_val) in vidioc_s_tuner()
344 tea->band = BAND_AM; in vidioc_s_frequency()
346 tea->band = BAND_FM_JAPAN; in vidioc_s_frequency()
348 tea->band = BAND_FM; in vidioc_s_frequency()
350 tea->freq = clamp_t(u32, f->frequency, bands[tea->band].rangelow, in vidioc_s_frequency()
351 bands[tea->band].rangehigh); in vidioc_s_frequency()
382 if (i != tea->band) { in snd_tea575x_s_hw_freq_seek()
383 tea->band = i; in snd_tea575x_s_hw_freq_seek()
390 spacing = (tea->band == BAND_AM) ? 5 : 50; /* kHz */ in snd_tea575x_s_hw_freq_seek()