Lines Matching refs:vt
1224 * @vt: pointer to struct v4l2_tuner
1226 * At return, the structure vt will be filled with tuner information
1227 * if the tuner matches vt->type.
1228 * Note: vt->type should be initialized before calling it.
1231 static int tuner_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt)
1237 if (check_mode(t, vt->type) == -EINVAL)
1239 if (vt->type == t->mode && analog_ops->get_afc)
1240 analog_ops->get_afc(&t->fe, &vt->afc);
1241 if (vt->type == t->mode && analog_ops->has_signal) {
1242 u16 signal = (u16)vt->signal;
1245 vt->signal = signal;
1247 if (vt->type != V4L2_TUNER_RADIO) {
1248 vt->capability |= V4L2_TUNER_CAP_NORM;
1249 vt->rangelow = tv_range[0] * 16;
1250 vt->rangehigh = tv_range[1] * 16;
1255 if (vt->type == t->mode) {
1256 vt->rxsubchans = V4L2_TUNER_SUB_MONO | V4L2_TUNER_SUB_STEREO;
1261 vt->rxsubchans =
1266 vt->audmode = t->audmode;
1268 vt->capability |= V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO;
1269 vt->rangelow = radio_range[0] * 16000;
1270 vt->rangehigh = radio_range[1] * 16000;
1278 * @vt: pointer to struct v4l2_tuner
1280 * Sets the audio mode if the tuner matches vt->type.
1281 * Note: vt->type should be initialized before calling it.
1284 static int tuner_s_tuner(struct v4l2_subdev *sd, const struct v4l2_tuner *vt)
1288 if (set_mode(t, vt->type))
1292 t->audmode = vt->audmode;