Lines Matching refs: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)
181 if (radio->band == band)
184 radio->band = band;
186 radio->registers[SYSCONFIG2] |= radio->band << 6;
268 *freq = chan * si470x_get_step(radio) + bands[radio->band].rangelow;
281 freq = clamp(freq, bands[radio->band].rangelow,
282 bands[radio->band].rangehigh);
284 chan = (freq - bands[radio->band].rangelow) / si470x_get_step(radio);
297 int band, retval;
302 /* set band */
304 for (band = 0; band < ARRAY_SIZE(bands); band++) {
305 if (bands[band].rangelow == seek->rangelow &&
306 bands[band].rangehigh == seek->rangehigh)
309 if (band == ARRAY_SIZE(bands))
310 return -EINVAL; /* No matching band found */
312 band = 1; /* If nothing is specified seek 76 - 108 Mhz */
314 if (radio->band != band) {
318 retval = si470x_set_band(radio, band);
351 "seek failed / band limit reached\n");
392 ((radio->band << 6) & SYSCONFIG2_BAND) |/* BAND */
711 if (freq->frequency < bands[radio->band].rangelow ||
712 freq->frequency > bands[radio->band].rangehigh) {
713 /* Switch to band 1 which covers everything we support */
743 struct v4l2_frequency_band *band)
745 if (band->tuner != 0)
747 if (band->index >= ARRAY_SIZE(bands))
749 *band = bands[band->index];