• Home
  • Raw
  • Download

Lines Matching refs:band

194 static int si470x_set_band(struct si470x_device *radio, int band)  in si470x_set_band()  argument
196 if (radio->band == band) in si470x_set_band()
199 radio->band = band; in si470x_set_band()
201 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band()
273 *freq = chan * si470x_get_step(radio) + bands[radio->band].rangelow; in si470x_get_freq()
286 freq = clamp(freq, bands[radio->band].rangelow, in si470x_set_freq()
287 bands[radio->band].rangehigh); in si470x_set_freq()
289 chan = (freq - bands[radio->band].rangelow) / si470x_get_step(radio); in si470x_set_freq()
301 int band, retval; in si470x_set_seek() local
307 for (band = 0; band < ARRAY_SIZE(bands); band++) { in si470x_set_seek()
308 if (bands[band].rangelow == seek->rangelow && in si470x_set_seek()
309 bands[band].rangehigh == seek->rangehigh) in si470x_set_seek()
312 if (band == ARRAY_SIZE(bands)) in si470x_set_seek()
315 band = 1; /* If nothing is specified seek 76 - 108 Mhz */ in si470x_set_seek()
317 if (radio->band != band) { in si470x_set_seek()
321 retval = si470x_set_band(radio, band); in si470x_set_seek()
391 ((radio->band << 6) & SYSCONFIG2_BAND) |/* BAND */ in si470x_start()
689 if (freq->frequency < bands[radio->band].rangelow || in si470x_vidioc_s_frequency()
690 freq->frequency > bands[radio->band].rangehigh) { in si470x_vidioc_s_frequency()
721 struct v4l2_frequency_band *band) in si470x_vidioc_enum_freq_bands() argument
723 if (band->tuner != 0) in si470x_vidioc_enum_freq_bands()
725 if (band->index >= ARRAY_SIZE(bands)) in si470x_vidioc_enum_freq_bands()
727 *band = bands[band->index]; in si470x_vidioc_enum_freq_bands()