Lines Matching refs:tuner

31 #include <media/tuner.h>
748 /* TV tuner is PAL-only so it is always TB */
1072 { .input = { .name = "TV tuner", .type = V4L2_INPUT_TYPE_TUNER,
1073 .tuner = 0, .std = V4L2_STD_PAL },
1153 /* TV tuner is only able to demodulate PAL */
1165 ret = v4l2_subdev_call(cxdev->tuner, video, s_std, norm);
1168 "tuner norm setup failed (%d)\n",
1216 struct v4l2_tuner *tuner)
1223 if (tuner->index != 0)
1227 tuner->type = V4L2_TUNER_ANALOG_TV;
1229 tuner->type = V4L2_TUNER_RADIO;
1231 tuner->capability = 0;
1232 tuner->afc = 0;
1239 ret = v4l2_subdev_call(cxdev->tda9887, tuner, g_tuner, tuner);
1249 ret = v4l2_subdev_call(cxdev->tuner, tuner, g_tuner, tuner);
1253 tuner->signal = 0;
1258 ret = v4l2_subdev_call(cxdev->cx25840, tuner, g_tuner, tuner);
1263 strscpy(tuner->name, "TV tuner", sizeof(tuner->name));
1265 strscpy(tuner->name, "Radio tuner", sizeof(tuner->name));
1267 memset(tuner->reserved, 0, sizeof(tuner->reserved));
1273 const struct v4l2_tuner *tuner)
1280 if (tuner->index != 0)
1283 ret = v4l2_subdev_call(cxdev->tda9887, tuner, s_tuner, tuner);
1287 ret = v4l2_subdev_call(cxdev->tuner, tuner, s_tuner, tuner);
1293 * since calls above may have changed it for tuner / IF demod
1298 v4l2_subdev_call(cxdev->cx25840, tuner, s_radio);
1300 return v4l2_subdev_call(cxdev->cx25840, tuner, s_tuner, tuner);
1309 if (freq->tuner != 0)
1312 return v4l2_subdev_call(cxdev->tuner, tuner, g_frequency, freq);
1323 if (freq->tuner != 0)
1326 ret = v4l2_subdev_call(cxdev->tda9887, tuner, s_frequency, freq);
1330 ret = v4l2_subdev_call(cxdev->tuner, tuner, s_frequency, freq);
1336 * since calls above may have changed it for tuner / IF demod
1341 v4l2_subdev_call(cxdev->cx25840, tuner, s_radio);
1343 return v4l2_subdev_call(cxdev->cx25840, tuner, s_frequency, freq);
1378 * make sure we don't have improper std bits set for the TV tuner
1472 /* switch tuner to analog mode so IF demod will become accessible */
1476 "tuner analog switch failed (%d)\n", ret);
1509 v4l2_subdev_call(cxdev->tuner, video, s_std, cxdev->norm);
1748 /* attach analog tuner */
1749 cxdev->tuner = v4l2_i2c_new_subdev(&cxdev->v4l2dev,
1751 "tuner", 0x61, NULL);
1752 if (!cxdev->tuner) {
1753 dev_err(&dvbdev->udev->dev, "tuner not found\n");
1762 v4l2_subdev_call(cxdev->tuner, tuner, s_type_addr, &tun_setup);
1767 "tuner", 0x43, NULL);