mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
[media] [RFC,1/1] V4L2: Use new CAP bits in existing RDS capable drivers
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
eb8942e9b6
commit
cb0ed22270
@ -374,7 +374,8 @@ static int vidioc_g_tuner(struct file *file, void *priv,
|
||||
switch (v->index) {
|
||||
case 0:
|
||||
strlcpy(v->name, "FM", sizeof(v->name));
|
||||
v->capability = V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_RDS;
|
||||
v->capability = V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_RDS |
|
||||
V4L2_TUNER_CAP_RDS_BLOCK_IO;
|
||||
v->rangelow = 1400; /* 87.5 MHz */
|
||||
v->rangehigh = 1728; /* 108.0 MHz */
|
||||
v->rxsubchans = cadet_getstereo(dev);
|
||||
|
@ -689,7 +689,7 @@ static int si470x_vidioc_g_tuner(struct file *file, void *priv,
|
||||
tuner->type = V4L2_TUNER_RADIO;
|
||||
#if defined(CONFIG_USB_SI470X) || defined(CONFIG_USB_SI470X_MODULE)
|
||||
tuner->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO |
|
||||
V4L2_TUNER_CAP_RDS;
|
||||
V4L2_TUNER_CAP_RDS | V4L2_TUNER_CAP_RDS_BLOCK_IO;
|
||||
#else
|
||||
tuner->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO;
|
||||
#endif
|
||||
|
@ -1804,7 +1804,7 @@ static int si4713_g_modulator(struct v4l2_subdev *sd, struct v4l2_modulator *vm)
|
||||
|
||||
strncpy(vm->name, "FM Modulator", 32);
|
||||
vm->capability = V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_LOW |
|
||||
V4L2_TUNER_CAP_RDS;
|
||||
V4L2_TUNER_CAP_RDS | V4L2_TUNER_CAP_RDS_CONTROLS;
|
||||
|
||||
/* Report current frequency range limits */
|
||||
vm->rangelow = si4713_to_v4l2(FREQ_RANGE_LOW);
|
||||
|
@ -429,7 +429,7 @@ static int saa6588_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt)
|
||||
{
|
||||
struct saa6588 *s = to_saa6588(sd);
|
||||
|
||||
vt->capability |= V4L2_TUNER_CAP_RDS;
|
||||
vt->capability |= V4L2_TUNER_CAP_RDS | V4L2_TUNER_CAP_RDS_BLOCK_IO;
|
||||
if (s->sync)
|
||||
vt->rxsubchans |= V4L2_TUNER_SUB_RDS;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user