diff options
-rw-r--r-- | drivers/media/radio/radio-cadet.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index d30fc0ce82c0..8b1440136c45 100644 --- a/drivers/media/radio/radio-cadet.c +++ b/drivers/media/radio/radio-cadet.c | |||
@@ -359,7 +359,8 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
359 | strlcpy(v->card, "ADS Cadet", sizeof(v->card)); | 359 | strlcpy(v->card, "ADS Cadet", sizeof(v->card)); |
360 | strlcpy(v->bus_info, "ISA", sizeof(v->bus_info)); | 360 | strlcpy(v->bus_info, "ISA", sizeof(v->bus_info)); |
361 | v->version = CADET_VERSION; | 361 | v->version = CADET_VERSION; |
362 | v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO | V4L2_CAP_READWRITE; | 362 | v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO | |
363 | V4L2_CAP_READWRITE | V4L2_CAP_RDS_CAPTURE; | ||
363 | return 0; | 364 | return 0; |
364 | } | 365 | } |
365 | 366 | ||
@@ -372,7 +373,7 @@ static int vidioc_g_tuner(struct file *file, void *priv, | |||
372 | switch (v->index) { | 373 | switch (v->index) { |
373 | case 0: | 374 | case 0: |
374 | strlcpy(v->name, "FM", sizeof(v->name)); | 375 | strlcpy(v->name, "FM", sizeof(v->name)); |
375 | v->capability = V4L2_TUNER_CAP_STEREO; | 376 | v->capability = V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_RDS; |
376 | v->rangelow = 1400; /* 87.5 MHz */ | 377 | v->rangelow = 1400; /* 87.5 MHz */ |
377 | v->rangehigh = 1728; /* 108.0 MHz */ | 378 | v->rangehigh = 1728; /* 108.0 MHz */ |
378 | v->rxsubchans = cadet_getstereo(dev); | 379 | v->rxsubchans = cadet_getstereo(dev); |
@@ -386,6 +387,7 @@ static int vidioc_g_tuner(struct file *file, void *priv, | |||
386 | default: | 387 | default: |
387 | break; | 388 | break; |
388 | } | 389 | } |
390 | v->rxsubchans |= V4L2_TUNER_SUB_RDS; | ||
389 | break; | 391 | break; |
390 | case 1: | 392 | case 1: |
391 | strlcpy(v->name, "AM", sizeof(v->name)); | 393 | strlcpy(v->name, "AM", sizeof(v->name)); |