Lines Matching defs:vt
1310 struct video_tuner *vt)
1312 vt->index = tuner->index;
1313 strlcpy(vt->name, tuner->name, sizeof(vt->name));
1314 vt->freq_lo = tuner->rangelow;
1315 vt->freq_hi = tuner->rangehigh;
1316 vt->signal = tuner->signal;
1317 vt->afc = tuner->afc;
1318 vt->caps = 0;
1320 vt->caps |= VIDEO_TUNER_F_STEREO;
1322 vt->caps |= VIDEO_TUNER_F_LANG1;
1324 vt->caps |= VIDEO_TUNER_F_LANG2;
1327 vt->mode = VIDEO_TUNER_F_MONO;
1330 vt->mode = VIDEO_TUNER_F_STEREO;
1333 vt->mode = VIDEO_TUNER_F_LANG1;
1336 vt->mode = VIDEO_TUNER_F_LANG2;
1339 vt->mode = VIDEO_TUNER_F_LANG1 | VIDEO_TUNER_F_LANG2;
1345 video_tuner_to_v4l2_tuner(const struct video_tuner *vt,
1348 tuner->index = vt->index;
1349 strlcpy(tuner->name, vt->name, sizeof(tuner->name));
1350 tuner->rangelow = vt->freq_lo;
1351 tuner->rangehigh = vt->freq_hi;
1352 tuner->signal = vt->signal;
1353 tuner->afc = vt->afc;
1355 if (vt->caps & VIDEO_TUNER_F_STEREO)
1357 if (vt->caps & VIDEO_TUNER_F_LANG1)
1359 if (vt->caps & VIDEO_TUNER_F_LANG2)
1361 switch (vt->mode) {
1384 struct video_tuner vt;
1390 v4l2_tuner_to_video_tuner(tuner, &vt);
1392 err = hw->get_tuner(sc->hw_softc, &vt);
1396 video_tuner_to_v4l2_tuner(&vt, tuner);
1405 struct video_tuner vt;
1410 v4l2_tuner_to_video_tuner(tuner, &vt);
1412 return hw->set_tuner(sc->hw_softc, &vt);
1441 struct video_tuner vt;
1449 vt.index = freq->tuner;
1450 error = hw->get_tuner(sc->hw_softc, &vt);
1454 if (freq->frequency < vt.freq_lo)
1455 freq->frequency = vt.freq_lo;
1456 else if (freq->frequency > vt.freq_hi)
1457 freq->frequency = vt.freq_hi;