Lines Matching full:band

35  *		- spacing and bottom of band codes remain the same
177 * si470x_set_band - set the band
179 static int si470x_set_band(struct si470x_device *radio, int band) in si470x_set_band() argument
181 if (radio->band == band) in si470x_set_band()
184 radio->band = band; in si470x_set_band()
186 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band()
267 /* Frequency (MHz) = Spacing (kHz) x Channel + Bottom of Band (MHz) */ in si470x_get_freq()
268 *freq = chan * si470x_get_step(radio) + bands[radio->band].rangelow; in si470x_get_freq()
281 freq = clamp(freq, bands[radio->band].rangelow, in si470x_set_freq()
282 bands[radio->band].rangehigh); in si470x_set_freq()
283 /* Chan = [ Freq (Mhz) - Bottom of Band (MHz) ] / Spacing (kHz) */ in si470x_set_freq()
284 chan = (freq - bands[radio->band].rangelow) / si470x_get_step(radio); in si470x_set_freq()
297 int band, retval; in si470x_set_seek() local
302 /* set band */ in si470x_set_seek()
304 for (band = 0; band < ARRAY_SIZE(bands); band++) { in si470x_set_seek()
305 if (bands[band].rangelow == seek->rangelow && in si470x_set_seek()
306 bands[band].rangehigh == seek->rangehigh) in si470x_set_seek()
309 if (band == ARRAY_SIZE(bands)) in si470x_set_seek()
310 return -EINVAL; /* No matching band found */ in si470x_set_seek()
312 band = 1; /* If nothing is specified seek 76 - 108 Mhz */ in si470x_set_seek()
314 if (radio->band != band) { in si470x_set_seek()
318 retval = si470x_set_band(radio, band); in si470x_set_seek()
351 "seek failed / band limit reached\n"); in si470x_set_seek()
392 ((radio->band << 6) & SYSCONFIG2_BAND) |/* BAND */ in si470x_start()
711 if (freq->frequency < bands[radio->band].rangelow || in si470x_vidioc_s_frequency()
712 freq->frequency > bands[radio->band].rangehigh) { in si470x_vidioc_s_frequency()
713 /* Switch to band 1 which covers everything we support */ in si470x_vidioc_s_frequency()
743 struct v4l2_frequency_band *band) in si470x_vidioc_enum_freq_bands() argument
745 if (band->tuner != 0) in si470x_vidioc_enum_freq_bands()
747 if (band->index >= ARRAY_SIZE(bands)) in si470x_vidioc_enum_freq_bands()
749 *band = bands[band->index]; in si470x_vidioc_enum_freq_bands()