aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/si470x/radio-si470x-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/radio/si470x/radio-si470x-common.c')
-rw-r--r--drivers/media/radio/si470x/radio-si470x-common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/radio/si470x/radio-si470x-common.c b/drivers/media/radio/si470x/radio-si470x-common.c
index 969cf494d85b..d485b79222fd 100644
--- a/drivers/media/radio/si470x/radio-si470x-common.c
+++ b/drivers/media/radio/si470x/radio-si470x-common.c
@@ -363,7 +363,7 @@ stop:
363 363
364 /* try again, if timed out */ 364 /* try again, if timed out */
365 if (retval == 0 && timed_out) 365 if (retval == 0 && timed_out)
366 return -EAGAIN; 366 return -ENODATA;
367 return retval; 367 return retval;
368} 368}
369 369
@@ -596,7 +596,9 @@ static int si470x_vidioc_g_tuner(struct file *file, void *priv,
596 strcpy(tuner->name, "FM"); 596 strcpy(tuner->name, "FM");
597 tuner->type = V4L2_TUNER_RADIO; 597 tuner->type = V4L2_TUNER_RADIO;
598 tuner->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO | 598 tuner->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO |
599 V4L2_TUNER_CAP_RDS | V4L2_TUNER_CAP_RDS_BLOCK_IO; 599 V4L2_TUNER_CAP_RDS | V4L2_TUNER_CAP_RDS_BLOCK_IO |
600 V4L2_TUNER_CAP_HWSEEK_BOUNDED |
601 V4L2_TUNER_CAP_HWSEEK_WRAP;
600 602
601 /* range limits */ 603 /* range limits */
602 switch ((radio->registers[SYSCONFIG2] & SYSCONFIG2_BAND) >> 6) { 604 switch ((radio->registers[SYSCONFIG2] & SYSCONFIG2_BAND) >> 6) {