Lines Matching refs:vt
217 int vivid_radio_rx_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) in vivid_radio_rx_g_tuner() argument
223 if (vt->index > 0) in vivid_radio_rx_g_tuner()
226 strscpy(vt->name, "AM/FM/SW Receiver", sizeof(vt->name)); in vivid_radio_rx_g_tuner()
227 vt->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO | in vivid_radio_rx_g_tuner()
236 vt->capability |= V4L2_TUNER_CAP_HWSEEK_BOUNDED; in vivid_radio_rx_g_tuner()
239 vt->capability |= V4L2_TUNER_CAP_HWSEEK_WRAP; in vivid_radio_rx_g_tuner()
242 vt->capability |= V4L2_TUNER_CAP_HWSEEK_WRAP | in vivid_radio_rx_g_tuner()
246 vt->rangelow = AM_FREQ_RANGE_LOW; in vivid_radio_rx_g_tuner()
247 vt->rangehigh = FM_FREQ_RANGE_HIGH; in vivid_radio_rx_g_tuner()
249 vt->signal = abs(sig_qual) > delta ? 0 : in vivid_radio_rx_g_tuner()
251 vt->afc = sig_qual > delta ? 0 : sig_qual; in vivid_radio_rx_g_tuner()
253 vt->rxsubchans = 0; in vivid_radio_rx_g_tuner()
254 else if (dev->radio_rx_freq < FM_FREQ_RANGE_LOW || vt->signal < 0x8000) in vivid_radio_rx_g_tuner()
255 vt->rxsubchans = V4L2_TUNER_SUB_MONO; in vivid_radio_rx_g_tuner()
257 vt->rxsubchans = V4L2_TUNER_SUB_MONO; in vivid_radio_rx_g_tuner()
259 vt->rxsubchans = V4L2_TUNER_SUB_STEREO; in vivid_radio_rx_g_tuner()
262 dev->radio_rx_freq >= FM_FREQ_RANGE_LOW && vt->signal >= 0xc000) in vivid_radio_rx_g_tuner()
263 vt->rxsubchans |= V4L2_TUNER_SUB_RDS; in vivid_radio_rx_g_tuner()
266 vt->audmode = dev->radio_rx_audmode; in vivid_radio_rx_g_tuner()
270 int vivid_radio_rx_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) in vivid_radio_rx_s_tuner() argument
274 if (vt->index) in vivid_radio_rx_s_tuner()
276 dev->radio_rx_audmode = vt->audmode >= V4L2_TUNER_MODE_STEREO; in vivid_radio_rx_s_tuner()